Examveda

What is the time complexity of accessing the front element in a queue implemented using an array?

A. O(1)

B. O(n)

C. O(log n)

D. O(n log n)

Answer: Option A


This Question Belongs to Data Structure >> Queues In Data Structures

Join The Discussion

Related Questions on Queues in Data Structures