KwickClips Cyber Safety and Ethics · 42 sec · free
Which one is a pile of plates?
Short answer. A stack.
What does a queue use?
front and rear.
Remember
| Stack: LIFO, push and pop |
| Queue: FIFO, front and rear |
A pile of plates and a ticket line. Which is which? T is the top. Push eight last, pop gives eight first. A queue instead uses front and rear. Remember two things. A stack is last in, first out. A queue is first in, first out.
This clip is from the full lesson: Data Structures in C++: Linked Lists, Stacks and Queues — 9 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: Programming All levels C++, Programming All levels C++, Programming All levels C++
More KwickClips from this lesson
What does the last node point to?41 sec
Which search needs sorted data?43 sec
What does Big O count?46 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

