← All problemsSign in

Mickey and Water

Mickey is stuck in a co-ordinate game. Your task is to help him to exit the game safely.Mickey is currently at position P1 denoted by (x1,y1) and has to reach P2 (x2,y2) to exit the game. But there's water all around and he drowns as soon he leaves his current position. However, in between P1 and P2 there are some magic points (x,y) in the game where he can go safely. These magic points are prese

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