GL
GrindLens
PatternsSheetsPricingQuestions
  1. Home
  2. /Patterns
  3. /Flood Fill
←All Patterns
GraphsEvidence Contributing

Flood Fill

Recursively (or iteratively) spread a fill from a starting cell to all connected cells matching a condition.

Practice Problems: 3
Difficulty: 0 Easy·3 Medium·0 Hard

Core technique

Review the technique, then try the mapped problems below. The right approach depends on each problem's constraints.

  • Core Strategy: Recursively (or iteratively) spread a fill from a starting cell to all connected cells matching a condition.

Canonical Practice Problems

3 problems
1.Max Area of IslandMedium
Solve on LeetCode↗
2.Number of IslandsMedium
Solve on LeetCode↗
3.Surrounded RegionsMedium
Solve on LeetCode↗

Curated Sheets Containing This Pattern

NeetCode 150

3 problems

→

NeetCode All

3 problems

→

LeetCode Top Interview 150

2 problems

→

Striver A2Z

2 problems

→

Blind 75

1 problem

→

Striver SDE Sheet

1 problem

→

Related Algorithmic Patterns

Graphs3 shared

Grid DFS Traversal

Graphs

BFS Shortest Path (Unweighted)

Graphs

Bounded-Hop Shortest Path (Bellman-Ford Style)

Graphs

Dijkstra's Shortest Path

Graphs

Graph DFS Traversal

GL
GrindLens

Precision pattern analytics and curated sheet tracking for algorithmic coding interview preparation.

Quick lookup:⌘Kor/

Platform

  • Patterns→
  • Sheets→
  • Pricing→

Community

  • Feedback
  • Report a bug
  • X
  • LinkedIn

© 2026 GrindLens. LeetCode is a trademark of LeetCode. GrindLens is an independent analytics platform and is not affiliated with or endorsed by LeetCode.

Terms of ServicePrivacy Policy