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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write and run your Python against test cases
  4. Answer the interviewer's follow-up questions, then get a hire or no-hire decision