Back to problems

Error Rate Monitor

Algorithm · Netflix · Easy

You are tasked with monitoring the health of a streaming service by analyzing its error rates. The error rates are recorded every minute and stored in an array errorRates, where each element represents the error count for that minute. To determine if the system is healthy at a specific minute timePoint, you need to check a window of time around it. The window extends timeRange minutes to the left and right of timePoint (including timePoint itself). If every error rate within…

Checking your access…