The Email Ranker
A medium Python interview practice problem on DataDriven. Write and execute real python code with instant feedback.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L3
Problem
Each record in `activities` is one email event: a dict with a `user_id` and an `action` that is either `send` or `receive`, and both count toward a user's activity. Rank users by their total activity from most to least, settling ties alphabetically by `user_id`.
Summary
Some inboxes see more action.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and checks it automatically.