Skip to content
RED SAGSkills
hard20 pts · first answer countshash-maptrade-offsmemory

Array or map for sparse large IDs

Employee IDs range up to 10^9, but only 2,000 employees exist. Why is an array indexed by ID a poor choice for lookups?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions