Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. 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 ?
    1. O(1)
    2. O(log n)
    3. O(n)
    4. O(n log n)
Correct Option: C

The tightest upper bound that represents the time complexity of inserting an object into a binary search tree with n nodes is O (n).



Your comments will be displayed only after manual approval.