AoC 2021 - Day 16
Today’s challenge is here.
My first attempt at solving this puzzle was to use a library called construct to parse the data, however it turned out to be too hard for me xD
I managed to create a parser for the literals:
This does work as excepted, but given that the entire problem is a tree of structures, I might just write a bunch of functions to parse the data instead. In construct the recursion has to be done by using LazyBound
as far as I can tell, which doesn’t really work with Bitwise
.