Hashing and hash maps
Use unordered_map/set for O(1) lookup and counting.
Lesson complete
Nice work. Replay it any time.
About this topic
Use unordered_map/set for O(1) lookup and counting.
Part of Data Structures & Algorithms (C++): 25 topics, 5 free.