Explain hash maps and solve array intersection | Citadel
|Home/Coding & Algorithms/Citadel
Explain hash maps and solve array intersection
Citadel
Jul 26, 2025, 12:00 AM
Software Engineer
Take-home Project
Coding & Algorithms
0
0
Explain the internal implementation of a hash map: underlying array/bucket layout, hash function choice, collision resolution strategies (separate chaining vs. open addressing), load factor thresholds and resizing/rehashing, deletion semantics, expected vs. worst-case time complexities, and typical memory trade-offs.
Given k integer arrays, return the sorted list of integers that appear in every array. Then extend your solution to return the integers that appear in at least t of the k arrays (1 ≤ t ≤ k). Provide algorithms, analyze time and space complexity, and discuss edge cases (e.g., duplicates within an array, empty arrays).