Loading...
The Deep Dive
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- mid
Problem
Our leaderboard service needs to look up arbitrary ranking positions. Write a function called nth_highest that takes a dictionary of string keys to integer values and an integer n, and returns the nth highest value. Return None if n exceeds the number of distinct values.
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.