carpool cost sharing: fix bug
carpool cost sharing: fix bug: a task in smol-software-harbor (Harbor dataset). When the fuel cost of a ride does not divide evenly, the riders' shares from split cents() in carpool.py do not add up to the total (a cent is lost or invented). Implement the rule described in its docstring: whole…
The task
When the fuel cost of a ride does not divide evenly, the riders' shares from `split_cents()` in `carpool.py` do not add up to the total (a cent is lost or invented). Implement the rule described in its docstring: whole cents, the leftover cents go one each to the largest remainders, ties broken by rider name. Run…
Part of efederici/smol-software-harbor.