Quiz: What Makes a Good Hash Map Key

Test your understanding

Check Your Understanding

You need to find two numbers that sum to a target. What should you store as the hash map key?

  1. A.The index of each element
  2. B.The target value
  3. C.The difference between consecutive elements
  4. D.Each element's value
Start the roadmap to answer the quizzes and solve the challenges