ShanksAkagami's blog

By ShanksAkagami, history, 7 weeks ago, In English

I have been trying to solve this problem using dynamic programming (or DP for short), I am getting a runtime error, okay I get it, but I don't seem to find the test case that breaks my code, tried to debug, did that for long long hours, but I can't seem to find the issue! Is my Algorithm wrong, or is the implementation, I don't know!!! Can someone please give me a hint (NOT solution)?

Link to the problem

Link to my submission

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it