The Trip Aggregator

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

Our travel dashboard's per-user destination counts look too high for people who go back to the same city, so we're rebuilding them from the raw trip records. For each user, report their total hours traveled and how many different destinations they've been to.

Summary

Travel records hold patterns waiting to be surfaced.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write and run your Python against test cases
  4. Answer the interviewer's follow-up questions, then get a hire or no-hire decision