DrawCode Practice Problem

Running Amount Per User · Ride requests 13

Ride requests DataFrame, variant 13. 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