Tags

Islands / Flood Fill

Islands / Flood Fill

0 lessons
5 problems
1 question bank

islands

Practice Problems

5 problems

Flood Fill

Free
Not Started
Easy

Given a 2D grid representing an image, a starting pixel, and a new color, perform a flood fill (like a paint bucket tool) to recolor the connected region.

Graphs
DFS
BFS
Islands / Flood Fill
Beginner

1k

9

Max Area of Island

Not Started
Medium

Given a binary grid, find the maximum area of an island (connected group of 1s connected 4-directionally).

Graphs
DFS
BFS
Islands / Flood Fill
Intermediate

485

15

Number of Islands

Free
Not Started
Medium

Given a 2D grid of '1's (land) and '0's (water), count the number of distinct islands formed by connected land cells.

Graphs
DFS
BFS
Islands / Flood Fill
Intermediate

392

7

Rotting Oranges

Free
Not Started
Medium

Given a grid where cells contain fresh oranges, rotten oranges, or are empty, determine the minimum time for all fresh oranges to rot via adjacency spreading.

Graphs
BFS
Multi-Source BFS
Islands / Flood Fill
Intermediate

292

4

Surrounded Regions

Not Started
Medium

Given a board of 'X' and 'O', capture all regions of 'O' that are completely surrounded by 'X' (not touching the border).

Graphs
DFS
BFS
Islands / Flood Fill
Intermediate

847

15