# -*- coding:utf-8 -*-
class Solution:
def jumpFloor(self, number):
# write code here
a, b = 1, 1
while number > 0:
number -= 1
b = a + b
a = b - a
return a
06-18
06-18
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交