Question: What is the time complexity of accessing an element in a queue?
Options:
Correct Answer: O(n)
Solution:
Accessing an element in a queue typically requires O(n) time because you may need to traverse the queue to find the element.