Leetcode DP problem

Revision en1, by Akhilanand0011, 2020-12-28 15:33:21

i was trying to solve this DP problem … i guessed the state … dp[i][j]-> minimum cost when our first finger is at index I and second finger is at index j… i am not getting how to write the relation with previous state?? can anyone help plzzzzzz???

problem link —

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Akhilanand0011 2020-12-28 15:33:21 375 Initial revision (published)