Skip to content

Commit ccbbdea

Browse files
committed
修改了换行符
1 parent e44e8e3 commit ccbbdea

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

notes/剑指offer面试题10--斐波那契数列.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ public class Fibonacci {
3535

3636
```java
3737
public int fib2(int n) {
38-
if (n <= 0) {
39-
return 0;
40-
}
38+
if (n <= 0) {
39+
return 0;
40+
}
4141

42-
if (n == 1) {
43-
return 1;
44-
}
42+
if (n == 1) {
43+
return 1;
44+
}
4545

46-
return fib2(n-1) +fib(n-2);
46+
return fib2(n-1) +fib(n-2);
4747
}
4848
```
4949

0 commit comments

Comments
 (0)