Loading interview...
The Response Aggregator
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
- junior, mid
Interview Prompt
Our data pipeline fetches paginated API responses. Write a function called aggregate_pages that takes a list of page results, where each page is a list of dictionaries with 'category' and 'amount' keys. Combine all pages and return a dictionary mapping each category to its total amount, sorted by total descending.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision