1 class Solution { 2 public: 3 int jumpFloorII(int number) { 4 if(number<=0) 5 return 0; 6 else 7 return 1<<(number-1); 8 } 9 };