Why my recursion wrong!!

Revision en1, by d3mon95, 2017-01-03 21:13:02

Hey amigos, I cannot understand the problem behind my recursion for the question BOTTLES[problem:730J] and here is my code[submission:23522054], i have try to do a simple recursion, but i cannot understand why i get wrong answer at tet 7. Plz help guys.

Tags help, dp, recursion

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English d3mon95 2017-01-03 21:14:05 81
en1 English d3mon95 2017-01-03 21:13:02 277 Initial revision (published)