Question DSA-HASH-0077
HardWhich problem is solved in O(n) by storing each element's index in a hash map as you scan?
- A.
Matrix multiplication
- B.
Finding the median
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Hashing question
Which problem is solved in O(n) by storing each element's index in a hash map as you scan?
Matrix multiplication
Finding the median
Sign up free to see the answer and a step-by-step explanation.
Two-sum: finding indices of two numbers that add to a target
Sorting