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 at the end. What is wrong with my solution?
Thanks!
Random Div. 2 Problem-Solving
2nd Universal Cup Summer Summit
Codeforces Round 954 Div 3 Solution Discussion (with Shayan)