The Silver Screen Summit
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L3
Problem
Given movies (list of dicts with 'actor' and 'earnings') and integer n, sum earnings per actor, then return the n actors with the largest totals sorted by total descending, tie-break alphabetically.
Summary
Box office totals decide who makes the top of the marquee.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.