Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 7:00 (UTC) due to technical maintenance. ×

Need help in a "meet in the middle problem"

Revision en1, by 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!

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)