Arrays and Linked Lists - Typical Problems - Higher Difficulty Problems

Download Q&A
Q. In a doubly linked list, how do you delete a node given only a pointer to that node?
  • A. Set next and previous pointers
  • B. Traverse from head
  • C. Use a stack
  • D. Not possible
Q. What is the average time complexity of quicksort?
  • A. O(n)
  • B. O(n log n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the space complexity of a recursive function that uses O(n) stack space?
  • A. O(1)
  • B. O(n)
  • C. O(n^2)
  • D. O(log n)
Q. What is the time complexity of deleting the last node in a singly linked list?
  • A. O(1)
  • B. O(n)
  • C. O(log n)
  • D. O(n log n)
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