Solved

You Have Implemented a Queue as a Singly-Linked List, Adding

Question 74

Multiple Choice

You have implemented a queue as a singly-linked list, adding elements at the end and removing elements at the front. What is the cost of the remove operation?


A) O(log(n) )
B) O(n)
C) O(n2)
D) O(1)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions