mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00: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