nice solution! how to figure this out though, thx!
I think the second sort in your code should be followed with -nr, not just -r
top 3 highest salaries don't have to be of only 3 different people.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.