Anonymous · shared experience1 Oct 2025 · 6 views
Rippling: Settle balances from a list of payments
Problem. You get transactions of the form (from, to, amount). Work out each person's net balance and print who should pay whom and how much to settle up. The minimum number of payments was not needed at first.
Follow-up. In the last few minutes: what is the best way to settle with as few payments as possible? The candidate described a greedy approach.
Tip. Code in the language you practise in. Switching to a work language caused compile errors here.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.