← All problemsSign in

RAHUL AND HIS GF

Rahul just finished his DLD Supply Exam. He wanted to celebrate by visiting his long distance Girl-Friend at Burj Khalifa. He asks the hotel receptionist his Gf's room number. The receptionist plays a game with him by only giving him the floor number and gives him a hint saying that "If you do an $XOR$ for all the room numbers one by one, and everytime you get a 0, there is a chance of finding her

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