题解 | #斐波那契数列#
斐波那契数列
https://www.nowcoder.com/practice/aa8ffe28ec7c4050b2aa8bc9d26710e9
let one = 1; let two = 1; let three; for (let i = 2; i < n ; i++) { three = one + two; one = two; two = three; } n = three; return n;
斐波那契数列
https://www.nowcoder.com/practice/aa8ffe28ec7c4050b2aa8bc9d26710e9
let one = 1; let two = 1; let three; for (let i = 2; i < n ; i++) { three = one + two; one = two; two = three; } n = three; return n;
相关推荐