InterviewDB Question

Refund Allocation: Distribute Partial Refunds Across Orders Fairly

Question Details

Problem A customer is owed a total refund of R dollars across multiple orders. Each order has an order_id and amount_paid. Distribute the refund proportionally (each order gets amount_paid / total_paid * R), rounded down to the nearest cent. Apply an…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Onsite