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.