It should be made clear that distinct salaries should be selected

  • 1

    I initially tripped up on the test case in which there are two employees with the same salary: in this case, null should be returned (rather than that salary). This should be made clear in the problem statement.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.