Single Choice Easy

QWhat is the time complexity of the delete operation in a binary search tree (BST)?

ID: #21516 Time Complexity 122 views
Question Info
#21516Q ID
EasyDifficulty
Time ComplexityTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A O(1) ✔ ✖
  • B O(log N) ✔ ✖
  • C O(N) ✔ ✖
  • D O(N log N) ✔ ✖
Correct Answer

Explanation

Deleting an element from a balanced binary search tree has a time complexity of O(log N), where N is the number of nodes.

Today: 0 answered · 0 correct
Save progress
Free account

Want to remember what you got wrong?

Create a free account in seconds to track your score, revisit mistakes and continue Complete Data Structures Mastery Course: Beginner to Advanced with Real-World Examples where you left off.

  • Save your progress & streak
  • Topic-wise quizzes & scores
  • Bookmark tricky questions
  • Printable MCQ sets
Practice smarterFree account · save progress
Sign up free

Share This Question

Challenge a friend or share with your study group.