Complexity Analysis (Big O) - Applications - Real World Applications

Download Q&A
Q. In a linked list, what is the time complexity of inserting an element at the beginning?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the time complexity of accessing an element in a stack?
  • A. O(n)
  • B. O(log n)
  • C. O(1)
  • D. O(n log n)
Q. What is the time complexity of bubble sort in the average case?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the time complexity of linear search in an unsorted array?
  • A. O(log n)
  • B. O(n)
  • C. O(n log n)
  • D. O(1)
Showing 1 to 4 of 4 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely