What is binary search tree and explain its time complexity?



What is binary search tree and explain its time complexity?..

Answer / Sunil Kumar Rajpal

A Binary Search Tree (BST) is a binary tree where each node has at most two children, and the left subtree contains only nodes with keys less than the parent node, while the right subtree contains only nodes with keys greater than the parent node. The time complexity for basic operations such as search, insert, and delete in a balanced BST is O(log n).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Write a code for dynamic allocation of array.

1 Answers   iNautix,


What is array and string?

1 Answers  


Mention some drawbacks of the linked list.

1 Answers  


Two linked lists are given, find out the sum of them without altering the linked list?

1 Answers   Expedia,


Which is faster hashmap or linkedhashmap?

1 Answers  


List some applications of tree-data structure?

1 Answers  


Is hashmap get thread safe?

1 Answers  


What is selection in an algorithm?

1 Answers  


How is any data structure application is classified among files?

1 Answers  


Describe the merge sort principle and what will be its time complexity?

1 Answers   Wipro,


what is Singly Linked list?

1 Answers  


Does treemap sort automatically?

1 Answers  


Categories