Skip to content

Glossary: Coding Interviews in C++

Flood fill

Starting at one grid cell and spreading to every connected cell of the same kind, like paint. It is used to mark an island.

Where the book teaches it

Related terms

IslandDFS (depth-first search)Grid