Leetcode 2853. Highest Salaries Difference
Given a list or table of employee salaries, compute the difference between the highest and the second-highest distinct salary (or return an appropriate null/indicator if fewer than two distinct salaries exist). This focuses on finding top-k values and handling edge cases.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.