2
class Solution: def jumpFloor(self, number): # write code here if(number == 1): return 1 if(number == 2): return 2 a = [1,2] for i in range(2,number): a.append(a[i-1] + a[i-2]) return a.pop()