← All problemsSign in

The Forbidden Path

Please use N,S,E,W in place of U,D,R,L. Laziness is the biggest and the only trait that our friend Kadka has. He is so lazy that even turning around is a pain in the leg [;)] for him. A complete idiot that he is, he cannot use his own mind and just follows directions. He is stuck in a maze and needs to get out. At every step he just follows the direction to the next position and thinks of nothing

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