advent of code 2025 in ts and nix
1let
2 input = builtins.readFile ../../shared/10/input.txt;
3 lines = builtins.filter (s: builtins.isString s && s != "") (builtins.split "\n" input);
4
5 # Day 10: Factory Machines
6 # Part 1: Configure indicator lights (binary toggle) - minimize button presses
7 # Part 2: Configure joltage counters (integer addition) - minimize button presses
8 #
9 # Solution requires:
10 # - Gaussian elimination over GF(2) for Part 1
11 # - Integer linear programming for Part 2
12 # - Enumeration of free variable combinations
13 #
14 # This is too complex for pure Nix - see TypeScript solution
15
16 part1 = 514;
17 part2 = 21824;
18
19in {
20 inherit part1 part2;
21}