Update queue_on_list.py (#851)

* Fixed error in queue_on_list.py
This commit is contained in:
luanjerry 2019-05-31 16:05:24 +08:00 committed by John Law
parent 4d9a1611bd
commit f386fce820

View File

@ -24,8 +24,9 @@ class Queue():
def get(self):
self.length = self.length - 1
dequeued = self.entries[self.front]
self.front-=1
self.entries = self.entries[self.front:]
#self.front-=1
#self.entries = self.entries[self.front:]
self.entries = self.entries[1:]
return dequeued
"""Rotates the queue {@code rotation} times