I was surprised by how easy today was, started to think I might have chances of making it to the end. But it's likely to ramp up soon? We'll see how long I manage to hang on.
Today's solution is my neatest so far I think (even did a sanity check on the input with the regex stuff learned yesterday). Except for the function to go from binary string to int, couldn't get Python to parse with int(string, 2) and I found this function on StackOverflow whilst looking for a solution.
I was surprised by how easy today was, started to think I might have chances of making it to the end. But it's likely to ramp up soon? We'll see how long I manage to hang on.
Today's solution is my neatest so far I think (even did a sanity check on the input with the regex stuff learned yesterday). Except for the function to go from binary string to int, couldn't get Python to parse with int(string, 2) and I found this function on StackOverflow whilst looking for a solution.
https://github.com/TijmenK/AoC2020/blob/main/day5.py