BeingBong's blog

By BeingBong, history, 3 years ago, In English
  • Vote: I like it
  • +1
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it +3 Vote: I do not like it

Increase the size of dp,

instead of dp[m + 1][n + 1] write smth like dp[N][N] (where N > max(n, m))

»
3 years ago, # |
  Vote: I like it -6 Vote: I do not like it

because your code take time greater time , compare to what they asked it's the simpelest answer , not to write a blog for it

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Ha ha don't give us lecture what to do what not