This is the solution for Advent of Code 2025 Day 8 in Python.
I'll be posting my solutions each day so please follow along!
union find algorithm: https://www.geeksforgeeks.org/dsa/introduction-to-disjoint-set-data-structure-or-union-find-algorithm/
github: https://github.com/DylanTech2025/AdventOfCode/tree/main/2025
0:00 Intro
0:17 Part 1
1:09 Part 1 Code
14:57 Part 2
15:28 Part 2 Code
18:35 Outro
#adventofcode #python