LeetCode-Climbing Stairs

简单的动态规划问题:

class Solution {
public:
    int climbStairs(int n) {
        vector stairs(n,0);
        stairs[0] = 1;
        stairs[1] = 2;
        for (int index=2;index

你可能感兴趣的:(LeetCode-Climbing Stairs)