Need help in a "meet in the middle problem"
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. What is wrong with my solution?
Thanks!