Help Needed in debugging

Revision en2, by TheHoodyGang, 2024-03-19 21:45:33

PLease help in this question 1932F - Feed Cats according to me my method is completely correct 252346495 UPD: I have checked bottom-up dp and it works! But the top-down dp as in the above one does not! Can someone give me an explanation? And also how to decide which one to choose.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English TheHoodyGang 2024-03-19 21:45:33 178
en1 English TheHoodyGang 2024-03-19 21:37:38 139 Initial revision (published)