InterviewDB Question

Optimizing Money Transfer: Find the Minimum Number of Transactions to Settle Group Debts

Question Details

Problem A group of people have lent and borrowed money. Given a list of transactions (payer, payee, amount), compute the minimum number of transfers needed to settle all debts. Example: Approach Compute net balance for each person. Remove all zero-ba…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone