The Intervals
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
- L3
Interview Prompt
You're rolling up a table of activity dates (ISO 'YYYY-MM-DD' strings, in no particular order) into a weekly view, with weeks counted from the earliest date. Return each week's number mapped to the dates that fell in it.
Summary
Timestamps in buckets.
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