The Scoreboard Race
A medium Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L3
Interview Prompt
You are replaying a recorded dice game from its log of rolls. Deal the values in `rolls` one at a time around the table in seating order (player 0, then player 1, wrapping back to player 0 after the last player), adding each value to that player's running total. The game ends the instant any player's total reaches or passes `target`, even mid-round before the remaining players have rolled; return all `num_players` scores, indexed by player, at that moment.
Summary
The first to cross the line ends the game, mid-round or not.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision