
Just finish part 2. Find that in those test and input file, rule 0 is always “0: 8 11”. As we know rule 8 is 42+, and rule 11 is 42+ 31+ (same number of 42s and 31s). So rule 0 is 42+ 31+ where the number of 42s should more than 31s.

I finally got a successful, thread-per-cell based version of day 11 part 1 working. It’s quite slow, but it works :smile: https://github.com/hashimmm/adventofcode/blob/master/2020/day11.rkt If the idea interests anyone enough to give it a look, comments/suggestions are welcome :slightly_smiling_face:

Yikes. Day 20 was fun, and I’m glad I did Part 1 in such a way as to make Part 2 not overly hard, but it definitely took me longer than the 25.5 minutes for the day’s leader :)

I’m curious about one aspect. I’ll ask in a thread to avoid spoilers.

I am having a very hard time on today’s problem. I’m not done with part 2 yet, but i’ve been working on it for a while

I’m curious about the approaches used to handle the various rotations and flip. My first thought was to leave the tiles alone, and simply use a different getter
for each orientation. See lines 9–15 <https://github.com/lojic/LearningRacket/blob/master/advent-of-code–2020/day20.rkt|in my solution> . It made some things easy, but having to keep track of the orientation per tile so I could use the appropriate getter
made other things harder. I’m a little too burned out on it to try the other approach. Probably just different tradeoffs re: convenience.

I won’t tell you how long I spent on it - too embarrassing :)

I think the person that submitted in 25.5 minutes must’ve had something very similar that could be tweaked.

Today’s problem was much more doable and fun

:sparkles:ingredience:sparkles:

yeah this was a big step down in difficulty tbh, but i took forever on part 2 due to a bug x___x

so i ended up with places 109 and 1085 i nearly broke 100 again on part 1 though if i was just a little faster….

solution in thread >>

https://git.lain.faith/haskal/aoc2020/src/branch/aoc2020/21.rkt
i use the old friend maximum-bipartite-matching
again

“anyway so maximum-bipartite-matching
is OP as [heck]” ~ hazel

It seems very useful, but i haven’t used graph
at all yet

I solved today’s problem with mostly set operations
