A door sensor counts visitors per hour. The cumulative array should show how many have arrived by the end of each hour, in the original order.
running_count, return np.cumsum(counts).Edit main.py, Run to check [2 7 8], then Submit. An hour with zero visitors should repeat the previous running total rather than reset it.
Keep the input order; cumulative counting does not sort the values.