Skip to content

斐波那契数列 的问题 #3

@tutu279737146

Description

@tutu279737146

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

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions