Loading...

The Numbered Chair

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

Domain
Python
Difficulty
easy
Seniority
junior, mid

Problem

Our leaderboard service stores player scores as a dictionary mapping names to points. Product wants a reusable utility to answer questions like 'who's in 3rd place?' Given the scores dictionary and a position n, return the player in that spot.

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.