Solving day 4 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
25:09 Part 2

Have fun!

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

I just finally solved 4.1. Not pretty, but it works ;-). Now watch your video to see how I could have done it more efficiently. Very informative. Thank you, it makes the advent of code extra fun!

mpl
Автор

Dude thank you for this series! I'm learning a lot from the way you solve the problems, keep it up!! =)

Alfiefaj
Автор

Such a bliss this serie, I m learning a lot !

didiercas
Автор

Thanks so much for doing this - learning a lot from your videos! I am new to Regex and was curious as to why you included the "+" in the "/[\n, ]+" line that you wrote. Thank you!

griffinbaker
Автор

What did you press on 2:40, beautifying functions of x? Thanks friend, walkthrough is more than great :)

ivanbrizanac
Автор

Just cleaning this data is giving me problems, I gotta practice. You're regex with the '+' flag through me, but essentially you're just saying you want to replace double spaces with a single space? TIA liked and subbed

danmiller
Автор

Hey, It appers that beacause I use windows envirement the .replace part just lumps all the numbers into one long row (so I cant seperate the into numbers and cards) does someone have pointers how to get this to work? Thanks

CnomestaX