Simple MySQL ~180ms
\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n  SET N = N - 1;\n  RETURN (\n      SELECT Salary\n      FROM Employee     \n      GROUP BY Sal
```\nCREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT\nBEGIN\n  SET N = N - 1;\n  RETURN (\n      SELECT Salary\n      FROM Employee     \n      GROUP BY Salary \n      ORDER BY Salary DESC\n      LIMIT 1 OFFSET N\n  );\nEND\n```
[]