[2023-01-05]
Start int size = A.length; int num = Integer.MAX_VALUE, num2 = 0; int pos = 0; Map map = new HashMap(); for(int i = 0; i = 0; j--) { if (map.get(j) == null) { map.put(j, A[j]); } else { int temp = map.get(j) + A[i]; map.put(j, temp); if (num > (temp / (i - j + 1))) { num = temp / (i - j + 1); num2 = temp % (i - j + 1); pos = j; } else if (num == (temp / (i - j + ..