Skip to content

Glossary: Coding Interviews in C++

In-bounds check

Also written: bounds check

Checking that a grid neighbor is on the grid, such as `0 <= r && r < rows`, before reading it. Note that `0 <= r < rows` compiles but means something else.

Where the book teaches it

Related terms

GridBFS (breadth-first search)