//T64 个人解法
function maxInWindows(num, size)
{
// write code here
if(size == 0) return [];
let arr = [];
for(let i = 0; i <= num.length-size; i++){
let ans = 0;
for(let j = i;j < i+size; j++ ){
ans = Math.max(ans,num[j]);
}
arr.push(ans);
}
return arr;
}