Backend Engineer
Return the top earners in every team.
- 1Your approach
- 2The follow-up
- 3Reflect & learn
THE INTERVIEWER ASKS
The scenario
Given employees(id, team_id, salary), return everyone in the top three distinct salary levels within each team.
How would you approach it?
Explain your assumptions, your approach, and why you chose it.