Need help in a "meet in the middle problem"

Правка en1, от skpro19, 2016-07-13 17:45:59

The question is this. It appeared in the latest Hackerrank Week of Code. I went through the editorial and implemented my solution. But it fails for some 10 — 12 test cases at the end. What is wrong with my solution?

Thanks!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский skpro19 2016-07-13 20:04:14 50
en2 Английский skpro19 2016-07-13 17:46:36 11 Tiny change: 'test cases at the end. What is ' -> 'test cases. What is '
en1 Английский skpro19 2016-07-13 17:45:59 375 Initial revision (published)