AoC 2017 Day 7 F# Solution Show more
Part 2 befuddled me until I realized what I had to do. Features regex and weird exception abuse!
#FSharp #AoC2017 #AdventOfCode
@calvin The way you surface the imbalance value is way easier than how I ended up doing it (with a lot of sort of awkward Option and Tuple manipulation). Very cool!
@vector bonus points: bare-minimum tree balancing
@calvin yeah because you know that only one is going to be wrong, you can kind of get tricky with that.