mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-05 20:24:19 +00:00
build
This commit is contained in:
@@ -416,7 +416,7 @@ comments: true
|
||||
|
||||
def is_empty(self) -> bool:
|
||||
"""判斷佇列是否為空"""
|
||||
return not self._front
|
||||
return self._size == 0
|
||||
|
||||
def push(self, num: int):
|
||||
"""入列"""
|
||||
|
||||
Reference in New Issue
Block a user