题解 | NC65 斐波那契数列
斐波那契数列
http://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3
# -*- coding:utf-8 -*- class Solution: def Fibonacci(self, n): # write code here i, j = 0, 1 for _ in range(n): i, j = j, i+j return i
斐波那契数列
http://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3
# -*- coding:utf-8 -*- class Solution: def Fibonacci(self, n): # write code here i, j = 0, 1 for _ in range(n): i, j = j, i+j return i
相关推荐