How to use Top-down DP?

Revision en1, by GrandLock, 2022-03-05 14:38:36

Help me by providing a top-down dp solution for these two: first, second.

If there are any type of optimizations that manages it to run in 1s please elaborate.

Tags dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English GrandLock 2022-03-05 14:38:36 268 Initial revision (published)