Question DSA-BST-151
MediumWhat is the time complexity of converting a sorted array of n elements into a balanced BST?
- A.
O(log n)
- B.
O(n log n)
- C.
O(n²)
- D.
O(n)
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
Binary Search Trees question
What is the time complexity of converting a sorted array of n elements into a balanced BST?
O(log n)
O(n log n)
O(n²)
O(n)
Sign up free to see the answer and a step-by-step explanation.