The Face That Breaks the Bank
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
- L4
Interview Prompt
Given a list of rounds (each a list of 6 face values in 1..6) and threshold integer, accumulate per-face totals across all rounds. Return {face: total} for the face with the highest cumulative total, provided that total strictly exceeds threshold; else return {}. Tie-break by smallest face value. The face key in the returned dict is the stringified face value.
Summary
Roll enough dice and one number always runs away with it.
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