Bitwise Operators
CodeChefOpen on judge ↗
Shubhanshu and Tushar love to learn new things. Recently they learned about the bitwise operators. They were familiar with the AND and OR operator but bitwise XOR was new to them. So to understand it more clearly, Shubhanshu created a puzzle using the XOR operator and ask Tushar to solve it. In this puzzle, Shubhanshu will give an integer $N$ and Tushar needs to find 2 number $A$ and $B$ such tha
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.
Sign in to chat with the tutor and save your progress.
Sign in to start