Re: Advent of code
- Posted by petelomax 1 week ago
- 222 views
Tee hee, had quite a bit of fun/frustration on day 9, the main stumbling block being part 2 giving the example
00...111...2...333.44.5555.6666.777.888899 0099.111...2...333.44.5555.6666.777.8888.. 0099.1117772...333.44.5555.6666.....8888.. 0099.111777244.333....5555.6666.....8888.. 00992111777.44.333....5555.6666.....8888..
and my brain automatically assuming that trailing ".." was an (etc) that is explicitly not there!
(so I went ahead and moved the 8s as well) Not helped by my trying to do things cleverly in minimal memory.
Turned out much easier after a good nights sleep and a fresh start. And using up (gosh) 95.5K of ram.
So my tip of the day (albeit 36 hours late) is.. follow the instructions.