Mull It Over [Day 3 - Advent of Code 2024 - Python] @0xdf
Mull It Over [Day 3 - Advent of Code 2024 - Python]  @0xdf
Uploaded December 2024 | Updated November 2026, 3 hours ago
I am given a large blob of junk text containing three potential "instructions". In part 1, I need to find all the mul(X,Y) instructions, multiple the values, and return the sum. In part 2, I'll process do() and don't() instructions that enable and disable the muls. I'll show a bad path I went down assuming alternating dos and don'ts, and solve with a loop over results from a regex match for all three instructions with a match statement.

2024 AOC repo: gitlab.com/0xdf/aoc2024
2024 AOC Intro vide: youtube.com/watch?v=4XKZZrhhiQE
VSCode Debug video: youtube.com/watch?v=cNhtk2Ob4B8

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:43] Part1 introduction
[01:09] Setup / data overview
[01:40] Getting instructions w/ regex
[03:20] Summing products
[04:25] Solving part 1
[04:39] Part 2 challenge
[05:50] Failed strategy with re.sub
[08:00] Refactor part 1 with loop
[11:00] Adding count for part2
[11:23] Conclusion

#adventofcode #python
Mull It Over [Day 3 - Advent of Code 2024 - Python]Uncheesable [0xff: One Last Address]Hacking PyJWT for Algorithm Confusion Attack [HackTheBox CyberMonday]Day 10: Pipe Maze [AOC2023 Python]Jumpio Adventure [HTB Stack Smash CTF]Reversal [HackTheBox - Coding Challenge](More) AWS CLI [Sans Holiday Hack 2022 - Cloud Ring]Playground [AOC2025 Day 8]Copy Fail Explained [CVE-2026-31431]LAN Party [Day 23 - Advent of Code 2024 - Python]Day 21: Step Counter [AOC2023 Python]Exploring Docker Registry Auth [HackTheBox RegistryTwo]
0xdf |

Mull It Over [Day 3 - Advent of Code 2024 - Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER