题解 | #斐波那契数列#
斐波那契数列
https://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3
int Fibonacci(int n ) { // write code here if(n == 1 || n == 2) return 1; return Fibonacci(n - 1) + Fibonacci(n - 2); }
斐波那契数列
https://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3
int Fibonacci(int n ) { // write code here if(n == 1 || n == 2) return 1; return Fibonacci(n - 1) + Fibonacci(n - 2); }
相关推荐