DrawCode Practice Problem

Latest Event Per User · Warehouse stock 11

Warehouse stock DataFrame, variant 11. Return the latest event per user as user_id, id, event_time, ordered by user_id. 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