Question DSA-HASH-0060
MediumWhat is the expected time to build a frequency map of n words with a hash map?
- A.
O(n²)
- B.
O(n)
- 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
What is the expected time to build a frequency map of n words with a hash map?
O(n²)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(n log n)
O(log n)