Skip to content
loading...

re: AoC Day 8: Memory Maneuver VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Kinda happy with this one! from collections import deque with open('input.txt', 'r') as f: data = deque() for line in f: for va...
 

Woah, that recursive constructor for Tree is really clever!

I considered building an object and then processing it after the fact, but decided to process it as I parsed it...I regretted that when I saw part 2 though 😅

code of conduct - report abuse