题解 | #斐波那契数列#
斐波那契数列
https://www.nowcoder.com/practice/c6c7742f5ba7442aada113136ddea0c3
#
# 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
#
#
# @param n int整型
# @return int整型
#
class Solution:
def Fibonacci(self , n: int) -> int:
# write code here
F = [1,1]
for i in range(2,n):
F.append(F[i-1]+F[i-2])
return F[-1]
三奇智元机器人科技有限公司公司福利 93人发布

