Arrays and Linked Lists - Complexity Analysis - Numerical Applications

Download Q&A
Q. In a singly linked list, what is the time complexity of inserting a new node at the beginning?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. What is the average time complexity of searching for an element in a sorted array using binary search?
  • A. O(n)
  • B. O(log n)
  • C. O(n log n)
  • D. O(1)
Q. What is the time complexity of traversing a linked list with 'n' nodes?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n^2)
Q. Which of the following is a characteristic of a stack?
  • A. FIFO
  • B. LIFO
  • C. Sorted order
  • D. Random access
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