Loading...
Top N Keys
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
Problem
An endpoint monitoring report needs the top N keys from a request-count dict. Return a list of the N keys with the highest values, sorted from highest to lowest.
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.