You are given a security, where security[i] represents the number of security guards on duty on the time.
The
There are at least time days before and after day i. That is, time security.length time.
The number of security guards is non-increasing for the time days before day i. That is, security[i - time] \ge security[i - time + 1] \ge \dots \ge security[i].
The number of security guards is non-decreasing for the time days after day i. That is, security[i] \le security[i + 1] \le \dots \le security[i + time].
Return an array of all good days to rob the bank. The order of the returned days does not matter.
Constraints:
security.length
security[i], time
You are given a security, where security[i] represents the number of security guards on duty on the time.
The
There are at least time days before and after day i. That is, time security.length time.
The number of security guards is non-increasing for the time days before day i. That is, security[i - time] \ge security[i - time + 1] \ge \dots \ge security[i].
The number of security guards is non-decreasing for the time days after day i. That is, security[i] \le security[i + 1] \le \dots \le security[i + time].
Return an array of all good days to rob the bank. The order of the returned days does not matter.
Constraints:
security.length
security[i], time