标签:
1 class Solution { 2 public: 3 int jumpFloorII(int number) { 4 if (number == 1) 5 return 1; 6 int sum = 0; 7 for (int i = number -1 ; i >= 1; --i) 8 { 9 sum += jumpFloorII(i); 10 } 11 return sum + 1; 12 } 13 };
标签:
原文地址:http://www.cnblogs.com/xiaoyesoso/p/5148757.html