From b39b5a4073add50dd5788975cbe7cab6d5c9c3d4 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:21 +0800 Subject: [PATCH] =?UTF-8?q?Update=2010.4=20=E5=8F=98=E6=80=81=E8=B7=B3?= =?UTF-8?q?=E5=8F=B0=E9=98=B6.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 方法名按 Java 的命名习惯改为 jumpFloorII。 --- notes/10.4 变态跳台阶.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/10.4 变态跳台阶.md b/notes/10.4 变态跳台阶.md index 04a89b85..d6316f13 100644 --- a/notes/10.4 变态跳台阶.md +++ b/notes/10.4 变态跳台阶.md @@ -52,7 +52,7 @@ f(n) = 2*f(n-1) 第一步的展开要求 n - 1 ≥ 1,所以上式在 n ≥ 2 时成立;又 f(1) = 1,因此 f(n) = 2n-1,例如 f(4) = 8。 ```java -public int JumpFloorII(int target) { +public int jumpFloorII(int target) { return (int) Math.pow(2, target - 1); } ```