← All problemsSign in

MOVES

PrepBuddy and Rahul both are fascinated by Virtual reality. PrepBuddy is a VR Game designer and decided to create a puzzle game for his friend Rahul. Rahul will be able to play this game using a VR headset. In the game, PrepBuddy created a rectangular $n*m$ maze. The squares have coordinates $(x, y) (1 ≤ x ≤ n, 1 ≤ y ≤ m)$, where $x$ is the index of the row and $y$ is the index of the column.

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