Skip to content

Glossary: Coding Interviews

Grid

Also written: grid[row][col]

Rows of cells stored as a list of strings or lists and read as `grid[row][col]`, such as the warehouse floor. Many problems hide a graph in a grid.

Where the book teaches it

Related terms

In-bounds checkBFS (breadth-first search)Flood fill