Loading...

The Generous Ones

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
junior, mid

Problem

The business team wants to know which customer is the most generous tipper across all their delivery orders. Given the order data as two parallel lists (user IDs and tip amounts), find the user whose tips add up to the highest total.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.