Update array_queue.py

This commit is contained in:
Qin Li 2018-10-21 12:18:56 +08:00 committed by GitHub
parent 2532017ee3
commit 2eaee67c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ class ArrayQueue:
return False
else:
for i in range(0, self._tail - self._head):
self._data[i] = self._items[i + self._head]
self._items[i] = self._items[i + self._head]
self._tail = self._tail - self._head
self._head = 0