Cbg. I’m looking some help with AoC 7, problem one. I’ve been hacking away to no avail. I initially tried convoluted if, else type stuff but no amount of tinkering would work. I’ve now decided on a dictionary, but cannot figure out how to create a tree of some sort. If anyone could offer a hint or a bit of advice I would be grateful. Here is my current attempt:
dpaste