← All problemsSign in

Continents in Sea

A sea contains a number of continents. From a sea, we have randomly picked up an area of Dimensions M * N. Each continent is represend by 1 or group of 1's (joined either horizontally or vertically) in this area. And 0's represent the water that surrounds those continents. Each unit of this area can contain either 0 or 1 representing continent/part of continent or water surrounding the continen

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