Advent of Code 2024 Go - Day 3: Mull It Over

  Рет қаралды 328

Josh Ackland

Josh Ackland

Күн бұрын

This is the day three challenge for Advent of Code 2024 and the challenge is called Mull It Over
Advent of Code: adventofcode.com/
GitHub Repo: github.com/jos...
Playlist: • Advent of Code 2024 Go

Пікірлер: 6
@benitoe.4878
@benitoe.4878 2 ай бұрын
Did it in Go as well. My solution is a mile long. Thanks for this one.
@jori4698
@jori4698 2 ай бұрын
took me 1 hour for the part 2. Just awesome how you handled it with your regex. I made 3 different regexes but your solution is way more elegant. love it!
@josh_ackland
@josh_ackland 2 ай бұрын
If I did 3 different regexs I'd have no idea how to get them in order :D
@Pravobzen
@Pravobzen Ай бұрын
@@josh_ackland I tried with three regex's, but it was a mess of trying to iterate through the indexes and doing conditional statements. I was able to modify your solution to a switch statement to then returned the filtered matches: enabled := true for _, match := range matches { switch match[0] { case "do()": enabled = true case "don't()": enabled = false default: if enabled { filteredData = append(filteredData, match) } } }
Advent of Code 2024 - Day 3 - Mull It Over
16:19
Daniel Persson
Рет қаралды 589
Advent of Code 2024 in BQN Day 3!
10:14
code_report
Рет қаралды 1,3 М.
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Advent of Code 2024 Go - Day 5: Print Queue
19:35
Josh Ackland
Рет қаралды 522
Advent of Code 2024 Day 3: Mull It Over in C# ✅✅
13:12
Martin Zikmund
Рет қаралды 812
Advent of Code 2024 Go - Day 7: Bridge Repair
13:29
Josh Ackland
Рет қаралды 335
Advent of Code 2024 | Day 03 "Mull It Over"
6:40
HyperNeutrino
Рет қаралды 1,9 М.
Why YOU Should Do Advent of Code
4:34
Theo - t3․gg
Рет қаралды 37 М.
Advent of Code 2024 Go - Day 8: Resonant Collinearity
14:03
Josh Ackland
Рет қаралды 302
Advent of Code 2024 - Day 3: Mull It Over (REGEX!?)
20:03
Jade Codes
Рет қаралды 358
Advent of Code 2024 Go - Day 16: Reindeer Maze
34:53
Josh Ackland
Рет қаралды 124
Advent of Code in Ocaml - Day 1 | So much fun
45:03
John Costa
Рет қаралды 603
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН