会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dinosauria
博客园
首页
新随笔
联系
订阅
管理
2025年4月11日
一维二维滑动窗口
摘要: 一维二维滑动窗口 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)
公告