Advent of Code 2021 - Day 9

preview_player
Показать описание
In this video series, I try to challenge myself with the Advent of Code trials. Each solution will be published to Github, and I hope you will learn something from my coding mistakes and perhaps send some code my way on how you have done these challenges. I know by reading code, so this is such an exciting thing for me.

Github repository:

Unlock unlimited opportunities with 50% off your first month of Coursera Plus

Get on the fast track to a career in cybersecurity. In this certificate program, you'll learn in-demand skills, and get AI training from Google experts. Learn at your own pace, no degree or experience required.

Join the channel to get access to more perks:

Or visit my blog at:

Outro music: Sanaas Scylla

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

I liked today's puzzle; I've always liked recursion.

I solved it in a similar way to you, but I encapsulated the data a little differently. After I got my version working I realized I could have simplified my data structure a bit, but it's not worth optimizing now :)

My implementation did do a "normal" sort and then take the last three elements :) I knew there had to be a way to sort in reverse order but I didn't know the syntax. After watching your video I switched mine to sort reverse, and then I can use the first three which is a little cleaner looking.

aaronperl