Programming with Scott - Advent of Code 2021 - Day 4 - Solved with Python

preview_player
Показать описание
00:00:00 Introduction
00:00:40 Part 1 Instructions
00:04:40 Part 1
01:02:11 Part 2 Instructions
01:02:55 Part 2

My name is Scott. I've been a professional Python developer for well over a decade.

Advent of Code is a yearly programming puzzle competition that has two related puzzles each of the first 25 days in the month of December.

I am making recordings of myself solving each day of Advent of Code 2021 with Python, and then posting the recordings here to YouTube. My goal is to show what my actual programming process looks like. I hope it is helpful to other current and aspiring software engineers.


If you would like to see my solutions, they are on GitHub here:

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

I saw the line about diagonals at the start and waiting for the realization to hit...

Also you are correct diagonals should always count.

HiMyNameIsColdguy
Автор

I wasn't really on board (pun intended) with your process for awhile but it actually was really good when part 2 came up. I wasn't a fan of having to go through every board and then comparing, I thought finding first winner is better for larger numbers for best case (worst case is the same). But definitely easier to change for the part 2 answer. I also find for debugging using the example input gives a lot less input to test against and they give the answer you should get to check against.

aaroncrandall