Anonymous · shared experience20 Jan 2025 · 4 views
Rippling: Delivery driver payout tracker with cleared payments
Problem. Build a class that tracks delivery drivers and what they are owed. It needs three operations: add a driver with an hourly rate, record a delivery with start and end times in epoch seconds, and return the total cost owed to all drivers.
Follow-ups.
- Given a time up to which payments have been cleared, pay out everything owed up to that point.
- Add a query for the total amount still unpaid.
- A further extension only needed a spoken approach.
What mattered. Production-quality code inside a clean class, since the problem keeps growing with each follow-up.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.