mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-12 07:26:07 +00:00
build
This commit is contained in:
@@ -462,7 +462,7 @@ comments: true
|
||||
|
||||
def is_empty(self) -> bool:
|
||||
"""判斷雙向佇列是否為空"""
|
||||
return self.size() == 0
|
||||
return self._size == 0
|
||||
|
||||
def push(self, num: int, is_front: bool):
|
||||
"""入列操作"""
|
||||
|
||||
Reference in New Issue
Block a user