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); } ```