Problem Description
Loading...
Problem Analysis
Classic DP problem From the bottom upwards we have $dp[i][j]+=max(dp[i+1][j],dp[i+1][j+1])$ so the final result is $dp[0][0]$
cpp
| |
Classic DP problem From the bottom upwards we have $dp[i][j]+=max(dp[i+1][j],dp[i+1][j+1])$ so the final result is $dp[0][0]$
| |
Loading...