Arrays and Linked Lists - Implementations in Python - Higher Difficulty Problems

Download Q&A
Q. In a binary search tree, what is the average time complexity for searching an element?
  • A. O(1)
  • B. O(log n)
  • C. O(n)
  • D. O(n log n)
Q. Which algorithm is used to find the shortest path in a weighted graph?
  • A. Depth First Search
  • B. Breadth First Search
  • C. Dijkstra's Algorithm
  • D. Merge Sort
Q. Which of the following operations on a linked list has a time complexity of O(n)?
  • A. Insertion at head
  • B. Insertion at tail
  • C. Deletion from head
  • D. Searching for an element
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