Skip a Beat
A easy Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- 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 without ever choosing two adjacent slots.
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 your python solution with real code execution
- Get instant feedback and a hire/no-hire decision