Rescue Son
CodeChefOpen on judge ↗
Amit and his son are staying in a hotel which has M floors and N rooms on each floor. From each room, he can go in two other rooms, the room which is just below that room and the room which is just right to that room. Amit’s son has been kidnapped and kept in a room of that hotel. Amit is present in the leftmost room on the topmost floor of that hotel. But the room is locked and to open this room
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