← All problemsSign in

Chef and Xor

One day Chef was bunking his classes and was playing games. His teacher saw him playing and got very angry at him. So next day he called him and asked him to solve a problem if he can solve it then he will not be punished else His teacher will call his parents and tell them all about it. The chef got scared and agreed to it. As his teacher knew that Chef is bad at calculating XOR of numbers so he

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start