awesome-algorithm-question-solution icon indicating copy to clipboard operation
awesome-algorithm-question-solution copied to clipboard

斐波那契数列 的问题

Open tutu279737146 opened this issue 7 years ago • 1 comments

斐波那契数列不是从1 开始吗?第一个程序的代码判断是不是有问题呢

int result[2] = {0, 1};

if(n < 2){
    return result[n];
}

传入0 返回 0(手动狗头)

tutu279737146 avatar Aug 24 '18 07:08 tutu279737146

2019-02-02 3 46 18

zziazm avatar Feb 02 '19 07:02 zziazm