Why Queues and Heaps in Python are Critical to Understand

Queues and Heaps are fundamental building blocks of developing sequences in programming

Miguel Saldana
Towards Data Science
6 min readApr 20, 2021

--

Photo by Melanie Pongratz on Unsplash

Queues are something intrinsic to humans as when we need to do something and it’s busy you usually have to wait in a queue or line of some sort. In Python and other programming languages, queues and heaps are a way to…

--

--