← All problemsSign in

22SP - 08 VanuaTube

Meggie and Vatsin are enjoying their summer in the beautiful country of Vanuatu. Vanuatu is composed of **m*n** islands, but a sudden earthquake caused the islands to shift their positions such that they miraculously ended up in an **m*n** grid of islands! The island that Meggie and Vatsin were chilling at somehow ended up in the bottom left hand corner of the grid. The earthquake also made the b

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