Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7170288

Browse files
authoredApr 4, 2018
Bug fixes
1 parent 53069c9 commit 7170288

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Queue/Queue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def dequeue(self):
3535
if self.isEmpty():
3636
return -1 # queue underflow
3737
else:
38-
self.queue.pop()
38+
self.queue.pop(0)
3939
self.size -= 1
4040
if self.size == 0:
4141
self.front = self.rear = 0

0 commit comments

Comments
 (0)
Please sign in to comment.