</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

03

:

09

:

01

Get this deal
Back to Dashboard

Traffic Spike Counter

Medium

You are given an array of hourly traffic measurements and a spike detection config. Count how many sliding windows of a given size trigger a spike alert.

A window of size window triggers an alert if the fraction of hours within it where traffic exceeds threshold is greater than or equal to ratio. ...