Design an expense sharing app
medium 80 minDivide bills between friends without losing a cent, keep one balance for each person that always adds up to zero, and settle with at most n - 1 payments.
Divide bills between friends without losing a cent, keep one balance for each person that always adds up to zero, and settle with at most n - 1 payments.