Walking through the requirements now while I'm on the train so I can get rolling on this tonight!
I see some people are sorting the checkbook before doing the balances by check number.
I am NOT going to do this, because I'm not confident the check number order is necessarily the order the checks were used / were processed by the bank. Therefore I think it might be more correct to keep the ordering of the given list!
Walking through the requirements now while I'm on the train so I can get rolling on this tonight!
I see some people are sorting the checkbook before doing the balances by check number.
I am NOT going to do this, because I'm not confident the check number order is necessarily the order the checks were used / were processed by the bank. Therefore I think it might be more correct to keep the ordering of the given list!
Here is my Rust Version!
It's not quite as well factored as I'd like, and it definitely doesn't account for nearly as many edge cases as it should but it works!