Skip a Beat
An easy 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
- easy
- Seniority
- L3
Interview Prompt
You're picking which slots to run on a single worker that needs a cooldown between jobs, so two back-to-back slots can never both run. Given `payoffs`, the value of each slot in order, return the most total value you can collect.
Summary
Two in a row is never allowed. Collect the most from what remains.
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