Loading...

The Pay Ladder

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

Given a list of employee records, find the top N unique salary values without using Python's nlargest(), sorted(), or sort() functions. Return them in descending order. If fewer than N unique salaries exist, return all of them.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.