This commit is contained in:
krahets
2023-08-04 05:24:49 +08:00
parent c4046ca688
commit fafdebb75c
27 changed files with 972 additions and 536 deletions

View File

@@ -564,7 +564,7 @@ comments: true
/* 判断栈是否为空 */
isEmpty() {
return this.size == 0;
return this.size === 0;
}
/* 入栈 */
@@ -621,7 +621,7 @@ comments: true
/* 判断栈是否为空 */
isEmpty(): boolean {
return this.size == 0;
return this.size === 0;
}
/* 入栈 */