July 2024
Beginner to intermediate
280 pages
7h 25m
English
In this chapter
In the previous chapter, you familiarized yourself with containers, a class of data structures whose main purpose is to hold a collection of objects, and with the simplest of all containers—the bag. Bags are simple data structures that require few resources. They can be useful when we want to hold data on which we only need to compute some statistics, but overall, they aren’t widely used.
Now it’s time to look at containers that are crucial to computer science: we start with the stack. You’ll find stacks ...
Read now
Unlock full access