← All problemsSign in

The island escape

Jesse has escaped prison. Walter has given him a way, which if followed would lead to Jesse’s successful escape. He must pass a grid(M * M) of islands. He can start from any island in the first row. When he reaches any island of the last row, he is said to have escaped. Each of the island has a cost to be at. If Jesse is on an island j in Row i, then he can go only to 3 islands in the next mov

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