We use cookies for analytics and ad measurement to improve lessons. Cookie policy

Memory gallery / Department Top Three Salaries

Hard · Database

Department Top Three Salaries

Return the highest distinct salaries within each department.

This memory room is part of Pro.

Retrieval check

With the notes hidden, what pattern should this room bring back?

Related rooms

  • Two Sum II - Input Array Is Sorted
  • Two Sum
  • Valid Palindrome