All Categories
Arrays & Hashing
Use hash maps for O(1) lookups and frequency counting.
Arrays & Hashing is the foundation of DSA. Trade space for time using hash maps.
Hash map: O(1) lookup, insert, delete. Think hash map for find pair or count occurrences.
Key Concepts
Hash Map
O(1) key-value lookup
Frequency Counter
Count element occurrences