2
public List<Integer> goodDaysToRobBank(int[] security, int time) {3
int[] nonincrease = new int[security.length];4
for (int i = 1; i < security.length - time; i++) {5
if (security[i] > security[i - 1]) {8
nonincrease[i] = nonincrease[i - 1] + 1;12
int[] nondecrease = new int[security.length];13
for (int i = security.length - 2; i >= time; i--) {14
if (security[i] > security[i + 1]) {17
nondecrease[i] = nondecrease[i + 1] + 1;21
ArrayList<Integer> result = new ArrayList<>();22
for (int i = time; i < security.length - time; i++) {23
if (nonincrease[i] >= time && nondecrease[i] >= time) {