Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: 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?
- A.The index of each element
- B.The target value
- C.The difference between consecutive elements
- D.Each element's value