Help in finding out a corner case which code fails for. KMXOR May Cook Off.

I’ve been trying for close to 4 hours to find a case the


[1] fails for... Is there any specific cases this code will fail for?


  [1]: https://www.codechef.com/viewsolution/18613732

try this test case and do let me know if there wasn’t any mistake…

Thanks a lot… I found out where I went wrong. I was crossing the range for k=2.

welcome :slight_smile: