Skip to content

Commit

Permalink
Update queue.js
Browse files Browse the repository at this point in the history
  • Loading branch information
krahets committed Dec 5, 2022
1 parent 19401fb commit f6ed7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codes/javascript/chapter_stack_and_queue/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/* 初始化队列 */
// Javascript 没有内置的队列,可以把 Array 当作队列来使用
// JavaScript 没有内置的队列,可以把 Array 当作队列来使用
// 注意:由于是数组,所以 shift() 的时间复杂度是 O(n)
const queue = [];

Expand Down

0 comments on commit f6ed7bc

Please sign in to comment.