Skip to content

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.

Where the book teaches it

Related terms

Hash map / hash setstd::pair