Complexity Analysis (Big O) - Implementations in Python - Case Studies

Download Q&A
Q. What is the time complexity of deleting an element from a binary search tree (BST) in the average case?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of enqueueing an element in a queue implemented with a linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. What is the time complexity of finding the shortest path in an unweighted graph using BFS?
  • A. O(n)
  • B. O(n^2)
  • C. O(m + n)
  • D. O(log n)
Showing 1 to 3 of 3 (1 Pages)
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely