Question DSA-SRCH-0014
MediumWhat is the time complexity of searching for a value in a balanced binary search tree with n nodes?
- A.
O(n)
- B.
O(1)
- 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
Searching and Binary Search question
What is the time complexity of searching for a value in a balanced binary search tree with n nodes?
O(n)
O(1)
Sign up free to see the answer and a step-by-step explanation.
O(n log n)
O(log n)