← All problemsSign in

The Cyclic Maze

Aladdin has designed a small maze for his son. He has designed a path divided into small partitions. Each partition has a door to the next partition that opens only one way. Each partition also has a number printed on the walls. Each partition has a single exit door but may have multiple entrance doors. The doors open only when someone passes through it and closes immediately after that. So, only

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