Spring Hire Sale
Limited Time Deal: Unlock all premium questions for over 30% off
$10.42$7.08
08
:
04
:
54
:
32
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.
...