Citadel·Software Engineer·Technical Phone Screen
- Walk me through how a hash map works under the hood: the bucket structure, how the hash function is chosen, how collisions are handled, when and how resizing happens, how deletion works, and what the real time and memory trade-offs look like.
- Given k integer arrays, find all integers that appear in every single array. Then generalize: return integers that appear in at least t of the k arrays, where t can be any value from 1 to k. Analyze complexity and handle edge cases like duplicates within a single array or empty arrays.
“This felt like it was going to be easy and then just kept going.”