The Trip Grouper
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- L4
Problem
Given a list of trip dicts (each with 'destination' and 'duration_days'), return a dict mapping each destination to the total duration_days across all matching trips.
Summary
Where did everyone go, and for how long?
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.