Skip to content

Commit 1fead87

Browse files
committed
committed from zkp
1 parent b995b7a commit 1fead87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LeetCode/ArrayQueue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __iter__(self):
1717
class FullError(Exception):
1818
pass
1919
class ArrayQueue:
20-
'''定长的队列,当队列满了之后再添加元素,会覆盖掉最后添加的一个元素。'''
20+
'''定长的队列,当队列满了之后再添加元素,会覆盖掉第一个添加的一个元素,从头开始添加。'''
2121
def __init__(self, maxsize):
2222
self.maxsize = maxsize
2323
self.array = Array(maxsize)

0 commit comments

Comments
 (0)