Loading interview...

The Hourly Bucket

A medium Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Interview Prompt

Write a function that groups events by the hour they occurred. Each event is a dict with 'ts' (ISO timestamp like 'YYYY-MM-DDTHH:MM:SS') and 'type'. Return a dict mapping the hour prefix 'YYYY-MM-DDTHH' to a list of event type strings in original order.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your python solution with real code execution
  4. Get instant feedback and a hire/no-hire decision