Please read the new rule regarding the restriction on the use of AI tools. ×

Need help in a "meet in the middle problem" 
Difference between en2 and en3, changed 50 character(s)
The question is [this](https://www.hackerrank.com/contests/w21/challenges/borrowing-money). It appeared in the latest Hackerrank Week of Code. I went through the editorial and implemented my [solution](http://ideone.com/ipaB6s). But it fails for some 10 — 12 test cases. What is wrong with my solution? ↵

Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English skpro19 2016-07-13 20:04:14 50
en2 English skpro19 2016-07-13 17:46:36 11 Tiny change: 'test cases at the end. What is ' -> 'test cases. What is '
en1 English skpro19 2016-07-13 17:45:59 375 Initial revision (published)