Restroom Redoubt [Day 14 - Advent of Code 2024 - Python] @0xdf
Restroom Redoubt [Day 14 - Advent of Code 2024 - Python]  @0xdf
Uploaded December 2024 | Updated November 2026, 3 hours ago
I'm given a list of robots each with x, y positions and velocity. In part 1, I need to get the position of every robot after 100 seconds, and calculate a score based on the quadrant the robot falls into. For part 2, I'm asked to find when the robots line up to form the shape of a Christmas tree. This is a rather silly problem, but I'll find it by plotting the safety score over time and seeing a really low one that jumps out.

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
[01:00] Setup / data overview
[01:26] Defining width / height
[02:08] Looping over lines, parsing
[03:22] Moving each robot to 100
[03:59] Finding quad
[05:44] Solving part 1
[05:58] Part 2 challenge
[06:39] Strategy
[07:00] Refactor safety score
[07:50] Getting list of robots
[08:11] Solving part 1 refactored
[09:07] Collecting safety score over time
[10:27] Plotting safety score
[11:18] Solving part 2
[11:31] Plotting Christmas tree
[13:20] Conclusion

#adventofcode #python
Restroom Redoubt [Day 14 - Advent of Code 2024 - Python]PHP Filter Injection: LFI2RCE ExplainedDay 22 - Grid Computing [Revival of Code 2023 - Advent of Code 2016]CVE-2022-23935 Analysis: Command Injection in Exiftool [HackTheBox - Investigation]Day 18 - Like a Rogue [Revival of Code 2023 - Advent of Code 2016]Python Flask Jinja2 SSTI Payload AnalysisDay 17 - Two Steps Forward [Revival of Code 2023 - Advent of Code 2016]Wearhouse Woes [Day 15 - Advent of Code 2024 - Python]Day 25: Snowverload [AOC2023 Python]Day 5: If You Give A Seed A Fertilizer [AOC2023 Python]Finding and Fixing a Bug in Netexec NFSReflective XSS via Link Click / SSRF [Hackvent 2022 - Day 14]
0xdf |

Restroom Redoubt [Day 14 - Advent of Code 2024 - Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER