Arrays and Linked Lists - Implementations in Python - Competitive Exam Level

Download Q&A
Q. What is the time complexity of deleting a node from a singly linked list given a pointer to that node?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
Q. Which data structure allows insertion and deletion from both ends?
  • A. Stack
  • B. Queue
  • C. Deque
  • D. Array
Showing 1 to 2 of 2 (1 Pages)
Soulshift Feedback ×

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

Not likely Very likely