题解 | #寻找峰值#
寻找峰值
https://www.nowcoder.com/practice/fcf87540c4f347bcb4cf720b5b350c76
class Solution { public: int jumpFloor(int number) { int n = number; if(n==1) { return 1; } else if(n==2) { return 2; } else { return (jumpFloor(n-1)+jumpFloor(n-2)); } } };