Solution Review: Queue Using Stack
Let’s take a detailed look at the previous challenge’s solution.
We'll cover the following
Solution
As mentioned in the previous lesson, a typical queue has the following functions:
Add()
Remove()
Length()
IsEmpty()
We’ll take a close look at these functions individually. But before we do that, let’s start with constructing a queue struct.
Get hands-on with 1400+ tech skills courses.