The Shape They All Share

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
mid

Interview Prompt

A nightly job loads dozens of regional CSV exports into memory as `tables`, each one a list of row dicts. Over the years each region added its own extra columns, so the records no longer line up: combine every row into a single list, keeping only the fields every record shares.

Summary

A pile of exports, no 2 quite alike. Keep only what every record agrees on.

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