Tap here to switch tabs
Problem
Submissions

Problem: Longest Well-Performing Interval

Try to solve the Longest Well-Performing Interval problem.

Statement

Given an integer array hours representing the daily hours worked by an employee.

A day is considered a tiring day if the employee works strictly more than 88 hours.

A well performing interval is a contiguous sequence of days where the total count of tiring days is strictly greater than the total count of non tiring days.

Return the maximum length of a well performing interval.

Constraints:

  • 1≤1 \leq hours.length ≤104\leq 10^4

  • 0≤0 \leq hours[i] ≤16\leq 16

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Longest Well-Performing Interval

Try to solve the Longest Well-Performing Interval problem.

Statement

Given an integer array hours representing the daily hours worked by an employee.

A day is considered a tiring day if the employee works strictly more than 88 hours.

A well performing interval is a contiguous sequence of days where the total count of tiring days is strictly greater than the total count of non tiring days.

Return the maximum length of a well performing interval.

Constraints:

  • 1≤1 \leq hours.length ≤104\leq 10^4

  • 0≤0 \leq hours[i] ≤16\leq 16