A circular linked list is used to represent a queue. A single variable ‘P’ is…
A circular linked list is used to represent a queue. A single variable ‘P’ is used to access the queue. To which node should ‘P’ point so that both enqueue and dequeue operations can be performed in constant time?


- A.
rear node
- B.
front node
- C.
not possible with single pointer
- D.
node next to front
Attempted by 1025 students.
Sign up free to check your answer
Sign up freeLoading lesson…

