Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?
- AO(1)
- BO( log n)
- CO(n)
- DO(n log n)
Solve it on GATE DA practice →More Searching & Sorting Algorithms problems