Lost in a Grid
CodeChefOpen on judge ↗
Zucky wants to find his way out of a maze in minimum possible steps. Zucky knows that he can get lost in the maze if he can't find the exit so he decides to find a way by writing the code first. Now, he knows that there are doors, keys and walls in the maze. Doors and keys can be of four colors Red, Blue, Green, Yellow (RBGY) and red, blue, green, yellow (rbgy) respectively. (Capital letters repre
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