Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2853. Highest Salaries Difference
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source