DrawCode Practice Problem

Running Amount Per User · Security events 49

Security events DataFrame, variant 49. 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