The Event Bucketer
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
- L5
Interview Prompt
Given log tuples [timestamp_string, event_label] where timestamp is 'YYYY-MM-DD HH:MM:SS', bucket by hour using the first 13 characters ('YYYY-MM-DD HH'). Return a dict mapping each hour bucket to a dict mapping each event label to its count within that hour.
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 your python solution with real code execution
- Get instant feedback and a hire/no-hire decision