362. 敲击计数器 https://leetcode.cn/problems/design-hit-counter
362. Design Hit Counter https://leetcode.com/problems/design-hit-counter
933. 最近的请求次数 https://leetcode.cn/problems/number-of-recent-calls
933. Number of Recent Calls https://leetcode.com/problems/number-of-recent-calls
346. 数据流中的移动平均值 https://leetcode.cn/problems/moving-average-from-data-stream
346. Moving Average from Data Stream https://leetcode.com/problems/moving-average-from-data-stream
622. 设计循环队列 https://leetcode.cn/problems/design-circular-queue
622. Design Circular Queue https://leetcode.com/problems/design-circular-queue
641. 设计循环双端队列 https://leetcode.cn/problems/design-circular-deque
641. Design Circular Deque https://leetcode.com/problems/design-circular-deque
1670. 设计前中后队列 https://leetcode.cn/problems/design-front-middle-back-queue
1670. Design Front Middle Back Queue https://leetcode.com/problems/design-front-middle-back-queue
2073. 买票需要的时间 https://leetcode.cn/problems/time-needed-to-buy-tickets
2073. Time Needed to Buy Tickets https://leetcode.com/problems/time-needed-to-buy-tickets
考察先进先出性质
队列常见考点主要是元素「先进先出」的顺序特性,比如维护队列内的元素在「时序上」的某些性质,下面是几道例题,队列充当「滑动窗口」的作用。
loading...