Question DSA-QUE-0060
MediumIn a queue implemented with a singly linked list, which pointers make both enqueue and dequeue O(1)?
- A.
Only a head pointer
- B.
A head pointer for dequeue and a tail pointer for enqueue
- C.
Sign up free to see the answer and a step-by-step explanation.