70. Climbing Stairs Posted on 2021-01-04 | Edited on 2021-01-22 | Views: LeetCode 123456789101112class Solution { public int climbStairs(int n) { if(n==1) return 1; int[] memo=new int[n+1]; memo[1]=1; memo[2]=2; for(int i=3;i<=n;i++){ memo[i]=memo[i-1]+memo[i-2]; } return memo[n]; }}