In a Binary Search Tree (BST), what is the time complexity of searching for an element in the worst case?
A. O(1)
B. O(log n)
C. O(n)
D. O(n log n)
Answer: Option C
A. O(1)
B. O(log n)
C. O(n)
D. O(n log n)
Answer: Option C
A. Inorder
B. Preorder
C. Postorder
D. Level-order
Join The Discussion