Skip to content

Glossary: Coding Interviews

Visited set

Also written: visited

A set of cells (or nodes) already seen, checked before adding a neighbor so a search never repeats work or loops forever.

Where the book teaches it

Related terms

BFS (breadth-first search)DFS (depth-first search)Grid