Loading...

The Deep Selector

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

Domain
Python
Difficulty
easy
Seniority
mid, senior

Problem

Write a function that accepts a nested dict and a list of dot-notation field paths. Return a flat dict mapping each path to its value, or None if the path does not exist in the input.

Practice This Problem

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