logoalt Hacker News

cozzydyesterday at 8:53 PM1 replyview on HN

your goal is to find if there is any combination of plausible transaction orders that results in a balance less than 0, so you can issue an overdraft fee.


Replies

traderj0eyesterday at 8:58 PM

The original stated goal is that we want to disallow overdraft. If you want to allow it instead, then there are some followup questions like do you want to limit how much they could overdraft. But this is meant to be an example of race conditions, not a real world bank.