i have listened to the video on gray code and implemented the same logic as program and even cross checked with the code explained in that video but it is showing that i have failed a testcase would you help me in finding that wrong testcase accordance to my code.
Xor-4(one testcase failed)
Hey @Saikumar009
Your code is giving WA for this test case
Maybe you can try to find the issue first
Q : 4
2048 133120 133136 134160
A : No
If your doubt is resolved please close it