Question: what is the difference between array and queue?
Answer: Stacks and queues are for storing data temporarily so that you can process the contents one by one. Just like a queue for buying movie tickets, or a stack of pancakes, you process one element at a time. Arrays are for storing data as well as for accessing elements from the beginning, the end or in between.