Advent of Code 2025 - Day 10: Factory
Day 10 was a mathematical disguise wrapped in a factory automation problem. What looked like pathfinding turned out to be linear algebra - specifically, systems of equations that need Gaussian elimination to solve efficiently. At least, that’s what I thought until Part 2 humbled me.
The Problem
Factory machines have indicator lights and buttons. Each button toggles specific lights. Find the minimum button presses to configure all machines.
Example input: [.##.] (3) (1,3) (2) (2,3) (0,2) (0,1) {3,5,4,7}