Stacks and Queues
Expand the knowledge of collections by learning about stacks and queues.
Stacks
Stacks are a different way to approach collections. With arrays and lists, we can insert data and read it wherever we want. We can insert items in the middle and read from the end, for example. Stacks, however, only let us place and read new items on the top. Consider the following illustrations for better comprehension:
Access this course and 1400+ top-rated courses and projects.