Chapter 6
[
185
]
Underneath
the hood, Python implements
queues on top of the
collections.deque
data structure. Deques are advanced data structures that
permits efficient access to
both ends of the collection. It provides a more flexible interface
than is exposed by
Queue
. I refer you to the Python documentation if you'd
like to experiment more
with it.
LIFO queues
Do'stlaringiz bilan baham: