Loading interview...

The Priority Queue

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
mid, senior

Interview Prompt

A reporting pipeline needs to sort structured records by multiple criteria in a specific priority order. Given a list of dictionaries and an ordered list of key names, return the records sorted in ascending order by the first key, then by the second key on ties, and so on.

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