Introduction To Data Structures - Study Mode

[#11] What is the space complexity for deleting a linked list?
Correct Answer

(A) O(1)

[#12] Which of the following is not the type of queue?
Correct Answer

(B) Single ended queue

[#13] Consider a small circular linked list. How to detect the presence of cycles in this list effectively?
Correct Answer

(B) Have fast and slow pointers with the fast pointer advancing two nodes at a time and slow pointer advancing by one node at a time

[#14] If the elements "A", "B", "C" and "D" are placed in a stack and are deleted one at a time, what is the order of removal?
Correct Answer

(B) DCBA

[#15] Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?
Correct Answer

(D) Merge Sort