Advent of Code 2024 | Day 01 'Historian Hysteria'

preview_player
Показать описание
0:00 Part 1
2:56 Part 2
Рекомендации по теме
Комментарии
Автор

First line efficiency: 😁
First line readability: 🗿

vegeta
Автор

You are really good. Explaining what you did here with list, map, zip etc is worth an entire video

havenisse
Автор

It's that time of year again! Nice straightforward puzzle to kick things off.

TheFrogfather
Автор

Glad to see you back for another round of Advent of Code 🤩

fredoverflow
Автор

yay, youtube finally starting to understand what I want in my feed

acters
Автор

One small question. For the second part, wouldn't it be better to create a frequency dictionary of the lists or using a collections.Counter? That way you only loop over each list once, while in this solution, by calling r.count(x), you are looping over the right list for each element in the left list.

kayebennett
Автор

That was a fun easy one... I hope it won't get deranged like last year's lol

brunokingz
Автор

You should do it in C so you can actually write the code yourself instead of calling 16 functions

flomol
join shbcf.ru