Question DSA-QUE-0033
EasyWhen a queue is built from a singly linked list, where should enqueue and dequeue happen for O(1) time?
- A.
Both at the head
- B.
Enqueue at the head and dequeue at the tail
- C.
Sign up free to see the answer and a step-by-step explanation.