Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2988. Manager of the Largest Department
Given an employees table with manager relationships, find the manager who oversees the largest department (most direct reports) and return their id and name; if multiple managers tie, return the one with the smallest id. This is solved by aggregating direct-report counts per manager and selecting the maximum (with a join to get manager details).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.