题解 | #斐波那契数列#
斐波那契数列
https://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3
一句话:
return (n==1 || n==2)? 1:Fibonacci(n-1)+Fibonacci(n-2);
斐波那契数列
https://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3
return (n==1 || n==2)? 1:Fibonacci(n-1)+Fibonacci(n-2);
相关推荐