import java.util.*; public class Solution { public ArrayList<Integer> maxInWindows(int[] num, int size) { ArrayList<Integer> res = new ArrayList<>(); if (num == null || size <= 0 || size > num.length) return res; // 处理边界情况 Deque<Integer> deque = new ArrayDeque<>()...