Day 4: Scratchcards | Advent of Code 2023

preview_player
Показать описание


00:00 Intro
00:40 Timelapse
00:53 Puzzle 1
03:59 Puzzle 2
08:36 Outtro
Рекомендации по теме
Комментарии
Автор

Interesting approach starting at the end. I took the view that a given card will never change cards above it so it made more sense (to me anyway) to start at the top. No matter, it's always interesting to see other folk's solutions!

TheFrogfather
Автор

i never get how people come up with these super short awnsers.
i just created sets for each card and took the intersection as my solutuion to part one.
for part two i walked the list of all cars down and if i found a card was winning i would add that amount to the next cards well times the current card amount and then i just sum all of them up.

chillidog