摘要:
滑动窗口的最大值 def queuemax(array,k): if len(array)<k: return None reslist = [] for i in range(len(array)-k+1): temp=array[i:i+k] tempmax = max(temp) # print(tempmax) reslist.append(tempmax) return reslist 阅读全文
posted @ 2019-08-21 15:35
lililili——
阅读(301)
评论(0)
推荐(0)
摘要:
输入:“abcdefg”, 2 输出:“cdefgab” 阅读全文
posted @ 2019-08-21 14:55
lililili——
阅读(150)
评论(0)
推荐(0)
摘要:
采用:reverse() 阅读全文
posted @ 2019-08-21 14:38
lililili——
阅读(157)
评论(0)
推荐(0)

浙公网安备 33010602011771号