awesome-algorithm-question-solution
awesome-algorithm-question-solution copied to clipboard
斐波那契数列 的问题
斐波那契数列不是从1 开始吗?第一个程序的代码判断是不是有问题呢
int result[2] = {0, 1};
if(n < 2){
return result[n];
}
传入0 返回 0(手动狗头)