Skip to content

Glossary: Coding Interviews in C++

Grid

Also written: grid[row][col], 2D grid

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

Where the book teaches it

Related terms

BFS (breadth-first search)In-bounds checkIsland