A queue is implemented using an array such that ENQUEUE and DEQUEUE operations…
GATE · 2016 · CS · Set 1 · Computer Science & IT
A queue is implemented using an array such that ENQUEUE and DEQUEUE operations are performed efficiently. Which one of the following statements is CORRECT ( refers to the number of items in the queue)?
- A.
Both operations can be performed in
time - B.
At most one operation can be performed in
time but the worst case time for the other operation will be - C.
The worst case time complexity for both operations will be
- D.
Worst case time complexity for both operations will be
Attempted by 1177 students.
Sign up free to check your answer
Sign up freeLoading lesson…