Crossed Wires [Day 24 - Advent of Code 2024 - Python] @0xdf
Crossed Wires [Day 24 - Advent of Code 2024 - Python]  @0xdf
Uploaded December 2024 | Updated November 2026, 1 hour ago
For day 24, I'm given a series of wires connecting to OR, AND, and XOR gates, and some initial values. Part 1 is very easy to recursively trace back from the given endpoints to find their values. In part 2, I have to swap four pairs of gate outputs to make it so that the result is the binary value representing the addition of two 45-bit binary inputs. This is very challenging, and involves some exploration.

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

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

[00:00] Part1 introduction
[02:20] Part 1 code review
[05:28] Solving part 1
[06:05] Part 2 challenge
[06:51] Changes to Connection class
[08:05] run_wire2 with given inits
[09:17] Finding broken bits
[12:05] Running to find failures
[12:51] Getting wires involved in a bit
[15:16] Looking for patterns
[16:35] Function to fix machine
[20:55] Solving part 2
[21:11] Conclusion

#adventofcode #python
Crossed Wires [Day 24 - Advent of Code 2024 - Python]Exploiting CVE-2023-40028 [LinkVortex - HackTheBox]Day 9 - Explosions in Cyberspace [Revival of Code 2023 - Advent of Code 2016]Tracing Automations in HackTheBox Mailroom [Beyond Root]Christmas Tree Farm [AOC2025 Day 12]Simple Use After Free Exploitation [Hackvent 2022 - Day 21]Factory [AOC2025 Day 10]Introduction [Revival of Code 2023 - Advent of Code 2016]QuickScan [HackTheBox Cyber Apocalypse CTF 2024]Day 15: Lens Library [AOC2023 Python]Day 7: Camel Cards [AOC2023 Python]Bypassing Python Filters [Code - HackTheBox]
0xdf |

Crossed Wires [Day 24 - Advent of Code 2024 - Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER