Solving day 10 of Advent of Code 2021 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 Part 1
12:18 Part 2

Have fun!

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

I always learn something from watching. Today it was a reminder that the .test and the .reverse methods exist. Thanks for keeping the series going. So clear AND entertaining ;-)

bikefixe
Автор

Comparing your code with mine i can see how I am over complicating everything. That regex test looks so clean compared to my crazy if or statements. Thank you for this amazing series.

manjubeli
Автор

I always come back and watch your solutions after either I've solved it or got stuck. Being new to Javascript and not understanding Regex I did it manually with a bunch of if/else-if statements. I'm surprised how close my solutions were compared to yours but in a less elegant way lmao

BreceLuu