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?

image.pngimage.png
  1. A.

    rear node

  2. B.

    front node

  3. C.

    not possible with single pointer

  4. D.

    node next to front

Attempted by 1025 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…