注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
内推收到OA,今天收到店面邀请了,把原题贴上来
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 takes the following parameters: - inputs: A list of integer times for the process. Thislist may be very long alert({1,2,100,2,2}, 2, 2.5) should alert: Even though no individualvalue causes an alert, there is a window with average 1.5 and a later windowwith an average more than 2.5 times larger Otherwise, you should return false.
|