Loading page…
Interview problems ask about a run of neighbours or about everything except one item. The move is to keep a running value so any run is the difference of two stored values. The lecture covers the empty prefix, products with zeros, remainders, run lengths and wide totals.
The interview problems on this street all use a running value.