by oceliker · 4y ago · 0 comments
https://adventofcode.com/2020/day/20
Did they hope the corner tiles had unique edges and look for those? (which would be unlikely under normal circumstances, considering there are more than a hundred tiles and only 256 different possible edges...)
It's not just measuring your problem solving abilities but also your famiarity with the author's writing style.
Apple's Dictionary (Oxford?)
> 2 the edge or boundary of something, or the part near it: the northern border of their distribution area | figurative : the unknown regions at the borders of physics and electronics.
https://www.merriam-webster.com/dictionary/border
> 1 : an outer part or edge
https://www.dictionary.com/browse/border
> the part or edge of a surface or area that forms its outer boundary.
I remember being flabbergasted at first, and then realizing the above. My solution is here:
https://github.com/linus/aoc/blob/main/2020/js/day-20/app.js
Also, that's really nicely written code :)