Question DSA-HASH-0056
MediumWhich structure keeps keys in sorted order with O(log n) operations, unlike a hash map?
- A.
A balanced BST (TreeMap)
- B.
A queue
- 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 structure keeps keys in sorted order with O(log n) operations, unlike a hash map?
A balanced BST (TreeMap)
A queue
Sign up free to see the answer and a step-by-step explanation.
An unsorted array
HashSet