Problem 1321 · Medium

Restaurant Growth

Add up payments per date, then slide a seven-day window across the dates. Only dates with seven days behind them produce a row, and the average is the window total divided by seven.

Open the interactive visualisation