题目链接 题目要求 You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 做这道题容易陷入的思维就是:所有step加起来的总和是n.俺这种思维去解决这个问题的话会显得很复杂. 按动态规划的思维,要爬到第n阶,可以从第n-1…