Day 24: Never Tell Me The Odds [AOC2023 Python] @0xdf
Day 24: Never Tell Me The Odds [AOC2023 Python]  @0xdf
Uploaded December 2023 | Updated November 2026, 3 hours ago
For Advent of Code 2023 Day 24, I get initial x, y, z positions and velocities for 300 hailstones. In part 1, I need to find how many of them cross in the X-Y plane. In part 2, I need to find a starting position and velocity for a rock I can throw that will hit all of the stones. I'll use sympy to make that happen.

Code 2023 AOC: gitlab.com/0xdf/aoc2023
Challenge Link: adventofcode.com/2023/day/24
en.wikipedia.org/wiki/Line%E2%80%93line_intersection

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

[00:00] Part 1 description
[01:59] Stone class
[04:59] Math background
[07:59] Solving for intersection
[10:43] Finding stones that intersect
[12:28] Accounting for parallel lines
[13:28] Solve part 1
[14:04] Part 2 description
[14:40] Setting up sympy
[15:23] Math background
[17:46] Creating equations
[20:50] Solve part 2
[20:40] Reducing solve time
[23:44] Summary

#adventofcode #python
Day 24: Never Tell Me The Odds [AOC2023 Python]Dirty Frag ExplainedDebugging WebAssembly [Derailed - Beyond Root]/proc and fd via Web File Read [Heal - HackTheBox]ThemeBleed Exploit Analysis (CVE-2023-38146)Day 6 - Signals and Noise [Revival of Code 2023 - Advent of Code 2016]Secret Enterance [AOC2025 Day 1]Hacking KringleCon [Sans Holiday Hack 2022]JavaScript / Bat File Polyglot Malware DropperNoSQL Injection Analysis [Shoppy - HackTheBox]Print Queue [Day 5 - Advent of Code 2024 - Python]Hacking Reportinator [Sans Holiday Hack 2023]
0xdf |

Day 24: Never Tell Me The Odds [AOC2023 Python]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER