Computer Science, asked by rahul90012006, 1 month ago

height of binary search tree in worst case

Answers

Answered by basantkushwaha6907
0

Answer:

height of binary tree in worst case is n-1...one node on each level

Answered by usmanzeba98
1
n a tree, the worst case runtime is dependent on the height of the tree. Since a binary search tree is not guarenteed to be balanced in any way, the worst case height of a tree with n nodes is n-1. Therefore, the worst case run time for insert is O(n).
Similar questions