Hash maps
Average O(1) lookup, the most useful tool in coding rounds.
A hash map turns a key into a position, so lookups stay fast however much data it holds. When a question feels like O(nยฒ), ask what you could remember in a map.
Two sum
Expected output
(0, 1)
Group anagrams
Expected output
[['eat', 'tea'], ['tan', 'nat']]