What Changed Overnight
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Problem
A migration ran overnight, and you have the table's columns from before it (`old_schema`) and after (`new_schema`), each a list of `{'name', 'type'}` dicts. Return which columns were added, which were removed, and which kept their name but changed type.
Summary
Schema from yesterday vs today. Something changed.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.