Книга: A Common-Sense Guide to Data Structures and Algorithms in Python, Volume 1
Назад: Queues in Action
Дальше: Exercises

Wrapping Up

As you’ve seen, stacks and queues are programmers’ tools for elegantly handling all sorts of practical algorithms.

Now that you’ve learned about stacks and queues, you’ve unlocked a new achievement: you can learn about recursion, which depends upon a stack. Recursion also serves as the foundation for many of the more advanced and super-efficient algorithms that I’ll cover in the rest of this book.

Назад: Queues in Action
Дальше: Exercises