1014ms solution

  • 0
    SELECT Salary FROM (
    	SELECT Salary, @r:=@r+1 as r FROM (
    		SELECT Salary FROM Employee GROUP BY Salary ORDER BY Salary DESC
    	) AS A, (SELECT @r:=0) AS B
    ) AS C WHERE r=N

Log in to reply

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