From a81a0536726ca8e5fecacbcf13bf3ced37e63dbc Mon Sep 17 00:00:00 2001 From: S-N-O-R-L-A-X Date: Mon, 5 Dec 2022 22:07:41 +0800 Subject: [PATCH] fix: fix small problems --- codes/javascript/chapter_stack_and_queue/queue.js | 2 +- codes/typescript/chapter_stack_and_queue/queue.ts | 4 ++-- docs/chapter_stack_and_queue/queue.md | 8 +------- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/codes/javascript/chapter_stack_and_queue/queue.js b/codes/javascript/chapter_stack_and_queue/queue.js index 2a90008..e08d253 100644 --- a/codes/javascript/chapter_stack_and_queue/queue.js +++ b/codes/javascript/chapter_stack_and_queue/queue.js @@ -1,6 +1,6 @@ /** * File: queue.js - * Created Time: 2022-12-04 + * Created Time: 2022-12-05 * Author: S-N-O-R-L-A-X (snorlax.xu@outlook.com) */ diff --git a/codes/typescript/chapter_stack_and_queue/queue.ts b/codes/typescript/chapter_stack_and_queue/queue.ts index 6b8fa4a..eb7b813 100644 --- a/codes/typescript/chapter_stack_and_queue/queue.ts +++ b/codes/typescript/chapter_stack_and_queue/queue.ts @@ -1,6 +1,6 @@ /** - * File: queue.js - * Created Time: 2022-12-04 + * File: queue.ts + * Created Time: 2022-12-05 * Author: S-N-O-R-L-A-X (snorlax.xu@outlook.com) */ diff --git a/docs/chapter_stack_and_queue/queue.md b/docs/chapter_stack_and_queue/queue.md index 87f0abd..e9c9fcb 100644 --- a/docs/chapter_stack_and_queue/queue.md +++ b/docs/chapter_stack_and_queue/queue.md @@ -143,7 +143,7 @@ comments: true === "JavaScript" ```js title="queue.js" -/* 初始化队列 */ + /* 初始化队列 */ // Javascript 没有内置的队列,可以把 Array 当作队列来使用 // 注意:虽然Javascript有shift()函数可以去除队首元素,但是时间复杂度是O(n)的。 const queue = []; @@ -171,12 +171,6 @@ comments: true === "TypeScript" ```typescript title="queue.ts" - /** - * File: queue.js - * Created Time: 2022-12-04 - * Author: S-N-O-R-L-A-X (snorlax.xu@outlook.com) - */ - /* 初始化队列 */ // Typescript 没有内置的队列,可以把 Array 当作队列来使用 // 注意:虽然Typescript有shift()函数可以去除队首元素,但是时间复杂度是O(n)的。