The Schema Diff
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
Given dicts d1 and d2, return a dict with: 'added' (dict of keys only in d2 with d2 values), 'removed' (dict of keys only in d1 with d1 values), 'changed' (dict of keys in both but values differ, mapped to [d1_value, d2_value]).
Summary
Two versions of the same config - what changed between them?
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.