DEV Community

Discussion on: Advent of Code 2020 Solution Megathread - Day 20: Jurassic Jigsaw

Collapse
 
neilgall profile image
Neil Gall

I got part 1 done but it took me ages to get the insight that it only needs the edge tiles arranged. Even then it takes 39 seconds to run which is too long and will never work for part 2. I must be missing some fundamental insight that makes the search space smaller.

github.com/neilgall/advent-of-code...

Collapse
 
neilgall profile image
Neil Gall

I found the algorithmic problem and it now arranges all the tiles in about one second. The code is simpler too!