MARIO AND ESTATE
CodeChefOpen on judge ↗
Mario has a square land, we call it his estate, as $N$ x $N$ matrix. There are some people living in it occupying some cells (represented by $‘2’$). Some of the other cells in the estate are vacant(represented by $‘0’$) and remaining cells contains 4-sided protective walls(represented by $‘1$’). As the estate is fully protected by the two allies, one at the bottom of the estate and other at the r
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