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)的。