DrawCode Practice Problem

Running Amount Per User · Store visits 33

Store visits DataFrame, variant 33. Return user_id, id, and running_amount ordered by user_id and event_time. Implement `solve(df)` and return a PySpark DataFrame.


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer