Skip to content

Glossary: Coding Interviews in Java

Flood fill

Starting at one grid cell and spreading, like paint, to every connected cell of the same kind. It is used to mark or count connected groups, such as shelf blocks on a warehouse floor.

Where the book teaches it

Related terms

IslandDFS (depth-first search)Grid