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
- A.
a and b
- B.
b only
- C.
c only
- D.
a, b and c
Attempted by 614 students.
Sign up free to check your answer
Sign up freeLoading lesson…