From 4042dc0383ac212c52310798ee3f30c74817cc9f Mon Sep 17 00:00:00 2001 From: MrWeast Date: Fri, 1 Dec 2023 10:12:32 -0500 Subject: [PATCH] removed un-used import removed import random and added a comment --- src/python/queue.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: