注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
OA还是报警器那道题,但是做完OA就收到回复说只招今年毕业的人,2019毕业的明年再联系,不是今年毕业的就不要浪费时间了
The Alerter is a simple monitoring tool, intended to help detectincreases in response time for some process. It does that by computing a few statistics about the process across a'window' of a certain number of runs, and alerting (returning true) if certain thresholds are met. It wwith an average more than 2.5 times larger Otherwise, you should return false.
套用lc maximum sliding window找到所有sliding window里的maximum,在扫一遍数组记录所有sliding sindow里的average,分别检查条件1和2,不满足则return true,default return false。
注意条件1要求当value所在的【所有】sliding window都超过allowed increase才报警,不是一次就报
|