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?


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: