solulubeta
Sign in
NeetCode 150 / Graphs
11.01 · Problem

Number of Islands

Medium Grid DFS / flood fill 1 video LC 200 Pro

This problem is part of solulu Pro

Given a grid of '1' (land) and '0' (water), return the number of islands. An island is a group of land cells connected horizontally or vertically; everything outside the grid is water.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 80 of 150 · updated 2026-10-12