Xiahaiw @ 2024-01-26 23:29:57
单调队列的时间复杂度是多少呀
by ricky0916 @ 2024-01-26 23:39:32
O(n)
by Forgotten_0114507666 @ 2024-01-27 01:05:08
@Xiahaiw 单次最坏
总计就是
by CNS_5t0_0r2 @ 2024-01-27 08:21:28
@Xiahaiw 每个数入队
by kevinZ99 @ 2024-01-27 08:41:33
每个数进入队列一次,出队列最多一次,均摊每次操作