← All problemsSign in

Chef And Life

Chef is a very thrilling person. He always tries risky task. One fine day his friend told him that there is a treasure in an island called Trap of Death. After listening to his friend he immediately start his journey towards the island. He passed all the challenges before him. But the last stage is way more dangerous than he thought. In this stage there is a $N$x$N$ matrix of tiles between treasur

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