Different opinion on the definition of Nth Highest


  • 1
    F

    Shouldn't it like this?

    +---------+--------+-------------+
    | Row No. | Salary | Nth Highest |
    +---------+--------+-------------+
    |       1 |    300 |           1 |
    |       2 |    300 |           1 |
    |       3 |    200 |           3 |
    |       4 |    200 |           3 |
    |       5 |    100 |           5 |
    +---------+--------+-------------+

Log in to reply
 

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