Podcast
Questions and Answers
What is the average time complexity for deletion in a Binary Search Tree?
What is the average time complexity for deletion in a Binary Search Tree?
- O(n)
- O(n/log n)
- O(log n) (correct)
- O(1)
What is the best-case time complexity for searching in a Hash Table?
What is the best-case time complexity for searching in a Hash Table?
- O(log n)
- O(1) (correct)
- O(n)
- O(n/log n)
What is the worst-case time complexity for searching in a Linked List?
What is the worst-case time complexity for searching in a Linked List?
- O(log n)
- O(n) (correct)
- O(1)
- O(n/log n)
What is the average time complexity for insertion in a Binary Heap?
What is the average time complexity for insertion in a Binary Heap?
What is the time complexity for finding the minimum/maximum value in a Binary Search Tree?
What is the time complexity for finding the minimum/maximum value in a Binary Search Tree?