Skip to content

Commit

Permalink
Update array_queue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liqin0702 authored Oct 21, 2018
1 parent 2532017 commit 2eaee67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/09_queue/array_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def enqueue(self, item: str) -> bool:
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

Expand Down

0 comments on commit 2eaee67

Please sign in to comment.