Skip to content

Commit 80c9139

Browse files
Update circular_queue.py
1 parent 3814c01 commit 80c9139

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

data_structures/queues/circular_queue.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ def enqueue(self, data):
6363
['A', 'B', None, None, None]
6464
>>> (cq.size, cq.first())
6565
(2, 'A')
66-
>>> cq2 = CircularQueue(2)
67-
>>> cq2.enqueue("X").enqueue("Y") # doctest: +ELLIPSIS
66+
>>> cq.enqueue("C").enqueue("D").enqueue("E") # doctest: +ELLIPSIS
6867
<data_structures.queues.circular_queue.CircularQueue object at ...>
69-
>>> cq2.enqueue("Z") # Queue is full
68+
>>> cq2.enqueue("F")
7069
Traceback (most recent call last):
7170
...
7271
Exception: QUEUE IS FULL

0 commit comments

Comments
 (0)