HELP needed in a dp/greedy problem.

Revision en1, by TCS_Bhediya, 2024-11-01 17:12:18

What's wrong with this solution — 289181642. I mean, I want to know why this is not working. I'm just storing the answer for each possible operation on a prefix and then greedily choosing the best prefix sum.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TCS_Bhediya 2024-11-01 17:12:18 262 Initial revision (published)