Hidden Depths
A medium Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L4
Interview Prompt
A config loader hands back settings as a flat dict whose keys encode depth with dots, like `a.b.c` for a value 3 levels down. Return the equivalent nested dict, where each dot-separated segment becomes one level deeper and the value lands at the end of its path.
Summary
Each dot marks a level. Rebuild the tree it stands for.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your Python against test cases
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision