Advent of Code 2021 - Day 1

preview_player
Показать описание
Here we go! Advent of Code 2021 has officially began!

My Leaderboard code: 71302-48eaefe9

0:00 - Intro
2:35 - Part 1
5:06 - Part 2
7:45 - Solution Explination

===== Music =====
Lake George - William Rosati
Рекомендации по теме
Комментарии
Автор

I know it's either too late or too early for Advent of Code but you should consider a filming a video on how you set up your environment in particular that verbose file input system (AOCPuzzle) you set up, lol. I think a lot of people learning Java could benefit from such a video. Otherwise great job.

scuffed_content
Автор

Oh yeah, here we go again. I love these, keep it up!

jaimeredondo
Автор

For the second part the solution could be simpler:
int numberOfIncreases = 0;
for (int i = 3; i < input.size(); i++) {
numberOfIncreases += input.get(i) > input.get(i - 3) ? 1 : 0;
}

We just need to compare the two values that do not overlap.

SkillazHDTV
Автор

Crazy 876 people did this in less than 10 minutes. Some of them explaining it while they were going along 😂

FastVideoProdInNash
Автор

how come it says there is no main method within my Day01 file?

bob