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
- L4
Interview Prompt
Given dicts d1 and d2, return a dict with three keys: 'added' (a dict of keys present only in d2, mapped to their d2 values), 'removed' (a dict of keys present only in d1, mapped to their d1 values), and 'changed' (a dict of keys present in both but whose values differ, each mapped to a two-element list [d1_value, d2_value]). Keys present in both with equal values are omitted. If the dicts are identical, all three sub-dicts are empty.
Summary
Two versions of the same config - what changed between them?
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