Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions queue/src/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@


class IterableMixin:
"""
A simple FIFO (First-In-First-Out) queue implemented using deque.

Methods:
enqueue(element): Add an element to the end of the queue.
dequeue(): Remove and return the element at the front of the queue.
"""
def __len__(self):
return len(self._elements)

Expand Down