can DP be applied in this problem

Revision en2, by code_tycoon, 2021-08-08 17:47:41

Here is the Problem Image : Click here

Sample Input output and constraints : CLICK here

Please specify an approach for this problem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English code_tycoon 2021-08-08 17:47:41 2 Tiny change: '15xL4r) \nSample I' -> '15xL4r) \n\nSample I' (published)
en1 English code_tycoon 2021-08-08 17:45:58 221 Initial revision (saved to drafts)