Question DSA-BST-174
HardA BST of n keys is converted into a sorted doubly linked list in place. What is the time?
- 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
Binary Search Trees question
A BST of n keys is converted into a sorted doubly linked list in place. What is the time?
O(n)
O(n²)
Sign up free to see the answer and a step-by-step explanation.
O(log n)
O(n log n)