← All problemsSign in

Maze Runner

Chef and Chefina are trapped in a magical maze of dimensions $N$ x $M$ x $K$. Each cell of the maze contains a non-negative integer. They are currently at $(1, 1, 1)$ and need to reach $(N, M, K)$ to escape. In $1$ move, they can go $1$ cell either to the right, down or to the bottom. More formally, if they are at cell ($x$, $y$, $z$), in one move they can go to : $(x+1,y,z)$ or $(x, y+1,z)$ or $

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