Glossary: Coding Interviews in Go
In-bounds check
Also written: bounds check
Making sure a neighbor cell is on the grid before reading it, so you never index outside the slice.
Glossary: Coding Interviews in Go
Also written: bounds check
Making sure a neighbor cell is on the grid before reading it, so you never index outside the slice.