← All problemsSign in

Super Mario

You are playing a game called Mario and your task is to save the princess. The game is represented as a 2D grid of dimensions h x n, where h is the height of the grid and n is the length of the grid (grid is placed vertically). The grid consists of two characters ‘ . ’ and ‘ * ’. Where ' . ' represents a free space and ' * ' represents a block. You cannot pass through a position having a block.

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