Converting dp solution to a recursive one

Revision en1, by ayush118, 2024-06-28 20:17:15

I am in my early stages of learning dp
Just wanted to know is it always possible to convert a dp solution into a recursive one
If so can anyone write the recursive code for this dp solution

Spoiler


The question is similar to this, the only difference is that we have to find the minimum elements to remove from the sequence b so that it can be sent over the network

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ayush118 2024-06-28 20:22:48 18
en1 English ayush118 2024-06-28 20:17:15 1838 Initial revision (published)