The Event Bucketer
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
- L5
Interview Prompt
We have event logs as pairs of a 'YYYY-MM-DD HH:MM:SS' timestamp and an event label. Return a dict of hour buckets, where each hour maps to how many times each event label occurred during it.
Summary
Logs slotted into 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