From `Employee(id, name, salary, departmentId)` and `Department(id, name)`, find employees who earn the maximum salary in each department.
DrawCode Practice Problem
Department Top Earner
Interactive Visualizer Workspace
Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.
Launch Interactive Visualizer