Which of the following operations on a queue data structure has a time…

TPSC Computer/IT Posts · 2025 · Senior Informatics Officer · Section D

Which of the following operations on a queue data structure has a time complexity of O(1) ?

(a) Enqueue (b) Dequeue (c) Peek (d) Clear

  1. A.

    a and b

  2. B.

    b only

  3. C.

    c only

  4. D.

    a, b and c

Attempted by 614 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…