The High Rollers
A medium Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Interview Prompt
A betting platform's wager log has one record per bet with a `user` and an `amount`; total each user's wagers and find the `threshold`-th percentile of those per-user totals. Return the users whose total sits above that cutoff.
Summary
Not every gambler bets the same - some wager far more than others.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your Python against test cases
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision