DataDriven
LearnPracticeInterviewDiscussDailyJobs

The Hostile Takeover

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
L4

Problem

Pipeline configuration arrives in layers: a `base` dict of defaults and an `override` dict that customizes it per environment, both nestable to arbitrary depth. Combine them into one dict where `override` wins on any conflicting leaf, except that when a key holds a dict on both sides the two sub-dicts combine by that same rule rather than one replacing the other. Keys present in only one side carry through untouched, and neither input may be modified.

Summary

One dict eats another.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons