Loading page…
An online store looks for the best stretch of consecutive days in a list of net revenue changes. Adding up every run from every start to every end examines about five billion runs for a hundred thousand days. One pass with two numbers, the best run ending here and the best so far, answers it in a hundred thousand steps. The lesson counts runs on real runs, shows why the numbers start from the first value, and extends the idea to products and to a circle.
You work on the sales dashboard of an online store.