Loading interview...

The Schema Diff

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

A config management tool needs to compare two dictionaries and classify every difference. Given two dictionaries d1 and d2, return a dictionary with three keys: 'added' (keys only in d2), 'removed' (keys only in d1), and 'changed' (keys in both but with different values - mapped to a tuple of (old, new)).

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