Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

斐波那契数列 的问题 #3

Open
tutu279737146 opened this issue Aug 24, 2018 · 1 comment
Open

斐波那契数列 的问题 #3

tutu279737146 opened this issue Aug 24, 2018 · 1 comment

Comments

@tutu279737146
Copy link

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

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

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

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

@zziazm
Copy link

zziazm commented Feb 2, 2019

2019-02-02 3 46 18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants