akashbhoi's blog

By akashbhoi, history, 6 months ago, In English
 
 
 
 
  • Vote: I like it
  • +1
  • Vote: I do not like it

»
6 months 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))

»
6 months 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

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

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

    • »
      »
      »
      6 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      If you know what to do and what not so why are you asking for help by a blog as a poor programmer

      • »
        »
        »
        »
        6 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        Bhai maine toh bas blog likha that itna gyan kyu de rha — :):)