Question DSA-HASH-0074
HardWhat is the expected time to find the first non-repeating character in a string using a hash map?
- A.
O(1)
- 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 find the first non-repeating character in a string using a hash map?
O(1)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(n²)
O(n log n)