← Questions

Settle group debts with the fewest transfers

0
StripeCodingLast asked Feb 2026

A group of people owe each other money, given as transfers (from, to, amount). Return the smallest number of transfers that brings every person's balance to zero.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding