Skip to content

Glossary: Coding Interviews in JavaScript

Flood fill

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

Where the book teaches it

Related terms

IslandDFS (depth-first search)Grid