zhngjn opened this issue 4 years ago · 0 comments
dp.append(dp[i-1] + dp[i-2]) 应该是dp.append(dp[i-1] + 2 * dp[i-2]) 爬i阶楼梯,在i-2阶之上,有两种爬法,1+1, 2