Loading page…
Three interview problems ask for the longest or the most stretches that obey a rule. The move is to grow the right edge each step and shrink the left only while the window breaks the rule. The lecture covers what to record, a jumping left edge, a stale count, and rules that fail with negative values.
Three interview problems sit on this street.