摘要: 一维二维滑动窗口 from collections import deque def sliding_window(nums,k): #nums为一维数组,k为窗口大小 max_result=[] #用来记录每次的最大值 min_result=[] #用来记录每次的最小值 q_max=deque() 阅读全文
posted @ 2025-04-11 19:10 永是珞珈一恐龙 阅读(7) 评论(0) 推荐(0)