Memory Limit Exceeded in a DP problem.

Revision en1, by Satwik_Mishra1, 2020-10-05 08:01:27

Just wrote a recursive code and memoised it,sample test cases do pass but memory limit exceeds in test 4. please help,thanks in advance:). link to my code:https://codeforces.net/contest/545/submission/94629751.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Satwik_Mishra1 2020-10-05 08:01:27 252 Initial revision (published)