Glossary: Coding Interviews in C++
Visited set
Also written: visited
A set of cells (or items) already processed, checked before visiting so a search never repeats work or loops forever. For grid cells it can be a `std::set` of row-column pairs.
Where the book teaches it
Related terms
BFS (breadth-first search)DFS (depth-first search)std::map and std::set