Approach hintTry it first, then revealHide
All reading times are positive, so extend the window to the right and shrink it from the left whenever its total exceeds t; the answer is the largest valid window length.
All reading times are positive, so extend the window to the right and shrink it from the left whenever its total exceeds t; the answer is the largest valid window length.