mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
parent
4d9a1611bd
commit
f386fce820
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user