Loading interview...

The File Tree Builder

A medium Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.

Domain
Python
Difficulty
medium
Seniority
senior

Interview Prompt

Your deploy pipeline logs every file path that changed in the latest release. For the post-deploy audit dashboard, you need to reconstruct the directory tree from flat path strings. Write a function that takes a list of file paths and builds a nested dictionary representing the directory structure, where leaf files map to null.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your python solution with real code execution
  4. Get instant feedback and a hire/no-hire decision