Q & A by Maninder Singh

Question:

QUESTION: What is a stack and a queue in data structures?

Answer:

A stack is like a stack of plates where you can only take the top one off. A queue is like a line of people waiting for a bus. They are used to manage data in specific ways.