This question evaluates understanding of data structures—arrays/lists versus dictionaries/hash maps—focusing on access patterns, time complexity for common operations, memory overhead, ordering and iteration characteristics.
You’re implementing a feature and must choose between using an array/list or a dictionary/hash map to store and access data.
Explain when you would use an array/list vs when you would use a dictionary/hash map.
Cover: