Explain 474D

Revision en1, by icode_247, 2018-09-12 22:59:03

Can someone please explain the logic used in the solution of this problem?. I see that they are trying to make a dp[] and then when we query for an input we get the result from the []. But how is this dp[] being developed?.

Please help. Thank you.

Tags 474d, #dynamic-programming, flowerproblem

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English icode_247 2018-09-12 22:59:03 313 Initial revision (published)