add code
This commit is contained in:
parent
aba56a0521
commit
203474fc67
2
queue.py
2
queue.py
@ -37,7 +37,7 @@ class Queue2:
|
|||||||
|
|
||||||
def dequeue(self):
|
def dequeue(self):
|
||||||
if self.head is not None:
|
if self.head is not None:
|
||||||
ausgabe = self.head.data
|
ausgabe = self.head
|
||||||
self.head = self.head.next
|
self.head = self.head.next
|
||||||
if self.head is None:
|
if self.head is None:
|
||||||
self.butt = None
|
self.butt = None
|
||||||
|
Loading…
Reference in New Issue
Block a user