Solving day 8 of Advent of Code 2022 in JavaScript

preview_player
Показать описание
Advent of Code is a website that releases a new programming puzzle every day between the 1st and the 25th of December.

0:00 Parsing
1:43 Part 1
16:59 Part 2

Have fun!

Рекомендации по теме
Комментарии
Автор

Solved this today – I actually "tilted" the whole array as a copy so that I could more easily check vertical and horizontal lines. But then, I'm apparently not smart enough to write a correct "checkVisibility" or "getLineOfViewCount" functions, so it took quite some time to get the correct numbers :D

HerrSiering