Skip to content

Glossary: Coding Interviews

Flood fill

Starting at one grid cell and spreading to every connected cell of the same kind, like paint. It is used to count separate areas such as shelf blocks.

Where the book teaches it

Related terms

IslandDFS (depth-first search)Grid