Glossary: Coding Interviews in C++
std::map and std::set
Also written: std::map, std::set
Sorted containers. `std::map` keeps keys in order, and `std::set` of pairs is used for visited cells because `std::unordered_set` has no hash for a pair.
Glossary: Coding Interviews in C++
Also written: std::map, std::set
Sorted containers. `std::map` keeps keys in order, and `std::set` of pairs is used for visited cells because `std::unordered_set` has no hash for a pair.