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.
Glossary: Coding Interviews in C++
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.