fix: fix small problems

This commit is contained in:
S-N-O-R-L-A-X 2022-12-05 22:07:41 +08:00
parent 77611bc758
commit a81a053672
3 changed files with 4 additions and 10 deletions

View File

@ -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)
*/

View File

@ -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)
*/

View File

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