class Solution { public: int jumpFloor(int number) { int f[45] = {0}; f[1] = 1,f[0] = 1; for(int i=2;i<=number;i++) f[i] = f[i-1]+f[i-2]; return f[number]; } };