diff --git a/src/python/queue.py b/src/python/queue.py index d3280dfb..9cd75f0e 100644 --- a/src/python/queue.py +++ b/src/python/queue.py @@ -1,6 +1,3 @@ -import random - - class Node: def __init__(self, value): self.value = value @@ -46,6 +43,7 @@ def dequeue(self): self.length -= 1 def show(self): + # first element is the head of the queue ptr = self.head val = [] while ptr is not None: