Solving day 3 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 Part 1
11:03 Part 2

Have fun!

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

I've worked with this guy! :D This is awesome! Subscribed :)

AndrewGrease
Автор

Thank you so much for doing this, it's really helping me through. I can generally think of the method but not the actual code and JavaScript keeps surprising me with the featureset it has to do these things quickly and easily. Looking forward to Day 4 (even though you're already on Day 7) - I'm catching up though. Have a great day!

RichardSouth
Автор

I am just a beginner of JS and ı tried few times to solve AoC but ı couldnt. and then ı saw ur video u r AMAZING

ereneren-qwlm
Автор

Nice solution 👌 Using the set was a good choice.

timomcgeer
Автор

I wanted to do the letter mapping the fancy way you did, but I ended up just having each letter in a long string and capturing the index('Z'). #lazy

const typePriority =
const priority = typePriority.index('Z');

queuebit
Автор

You helped me a lot with the Set idea. How did you think about it ?
Good job and see you tomorrow

Sachakonskier
Автор

Instead of filter, I went with find which gives us the first match directly.

thilina
Автор

Would you or anyone explain what mjs is? As a front-end developer, I'm aware of node but not mjs? Why not just use node? Thanks! Awesome works work. Following every day!

soltiscd