fix: fix some comment

This commit is contained in:
S-N-O-R-L-A-X
2022-12-23 12:08:15 +08:00
parent 0394f0c547
commit c20f7cdaac
3 changed files with 6 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/**
* File: linkedlist_queue.ts
* File: linkedlist_stack.ts
* Created Time: 2022-12-21
* Author: S-N-O-R-L-A-X (snorlax.xu@outlook.com)
*/
@ -52,7 +52,7 @@ class LinkedListStack {
return this.stackPeek.val;
}
/* 将 List 转化为 Array 并返回 */
/* 将链表转化为 Array 并返回 */
toArray(): number[] {
let node = this.stackPeek;
const res = new Array<number>(this.size);