What are the worst case and average case complexities of a binary search tree?

Q & ACategory: Data StructureWhat are the worst case and average case complexities of a binary search tree?
Admin Staff asked 4 years ago

What are the worst case and average case complexities of a binary search tree?
a) O(n), O(n)
b) O(logn), O(logn)
c) O(logn), O(n)
d) O(n), O(logn)

1 Answers
Admin Staff answered 4 years ago

d) O(n), O(logn)