Given daily sales `(sale_date, amount)`, compute a running total of `amount` ordered by `sale_date`.
Examples
Input
daily amounts 10, 20, 5
Output
running totals 10, 30, 35
Constraints
- Use window functions if available
- Order by sale_date
Given daily sales `(sale_date, amount)`, compute a running total of `amount` ordered by `sale_date`.
daily amounts 10, 20, 5
running totals 10, 30, 35
Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.
Launch Interactive Visualizer