思路:
# -*- coding:utf-8 -*-
class Solution:
def maxInWindows(self, num, size):
# write code here
maxnum=[]
if size==0 or len(num)==0:
return []
for i in range(0,len(num)-size+1):
temp=num[i:i+size]
maxnum.append(max(temp))
return maxnum