Tap to unmute

Advent of Code Revisited: Day 1-10

  Рет қаралды 2,381

HyperNeutrino

HyperNeutrino

Күн бұрын

Пікірлер: 4
@Mark-ij4lp
@Mark-ij4lp 2 ай бұрын
Thanks!
@QuotePilgrim
@QuotePilgrim Жыл бұрын
So what I did for day 10 was a ray casting algorithm but I didn't replace any of the pipes with a regex like you did. First I create an empty list. Whenever I hit a "|", "L" or "J", I add an "n" to the list if there's no "n" in it, otherwise I remove the "n" from it. Similarly, when I hit a "|", "F" or "7", I add an "s" to the list if there's no "s", otherwise remove it. If the tile I'm in is not a pipe, and there's both an "n" and an "s" in the list, then it's inside the loop and I increment the count by one.
@1337Ch33z
@1337Ch33z 11 ай бұрын
Only at day 3 but any reason you don't use defaultdict? Removes some boilerplate for the gears on day 3 and colors for day 2. Edit: TIL about for else 🎉
@hyper-neutrino
@hyper-neutrino 11 ай бұрын
Only learned about it recently TBH lol
Advent of Code 2023 Day 5: If You Give A Seed A Fertilizer
17:02
HyperNeutrino
Рет қаралды 13 М.
Advent of Code 2024 | Day 24 "Crossed Wires"
58:52
HyperNeutrino
Рет қаралды 2,2 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Advent of Code 2023 Day 9: Mirage Maintenance
4:16
HyperNeutrino
Рет қаралды 2,2 М.
Advent Of Code Day 1 challenge walkthrough solution
15:54
Felix Cenusa
Рет қаралды 812
Fear in Tech - Titus Winters - Keynote Meeting C++ 2024
2:12:30
Meeting Cpp
Рет қаралды 3,7 М.
Systems Design in an Hour
1:11:00
Jordan has no life
Рет қаралды 34 М.
Python laid waste to my C++!
17:18
Sheafification of G
Рет қаралды 157 М.
Coding in a Random Programming Language Everyday (Huge Mistake)
17:17
I Made Chess 2.0
14:32
From Scratch
Рет қаралды 1,1 МЛН
Advent of Code 2023 in Kotlin Day 1
1:21:22
Kotlin by JetBrains
Рет қаралды 17 М.
Introducing Clay - High Performance UI Layout in C
35:19
Nic Barker
Рет қаралды 130 М.