Skip to content

Glossary: Coding Interviews in JavaScript

Directions

Also written: direction pairs

A list of `[row change, column change]` pairs, such as `[1, 0]` and `[0, -1]`, used to visit a grid cell's four neighbors.

Where the book teaches it

Related terms

GridIn-bounds check