Back to problems

End Of Day Balance

Algorithm · Affirm · Easy

A buy-now-pay-later provider lends customers the purchase amount so they can buy immediately and repay over time. Because merchants still need the full payment upfront, money cannot move straight from a customer to a merchant; instead, funds must be routed among customers, the company, merchants, and third parties the company works with. Given a list of pending transactions and each party's current end-of-day bank balance, apply all transactions and determine the final…

Checking your access…