Uiua
(added language tag)
Quiet here, isn't it?
Here's part1 to be going on with.
# AOC 2025 Day 10 - Wiring maze
D β "[.##.] (3) (1,3) (2) (2,3) (0,2) (0,1) {3,5,4,7}\n[...#.] (0,2,3,4) (2,3) (0,4) (0,1,2) (1,2,3,4) {7,5,12,7,2}\n[.###.#] (0,1,2,3,4) (0,3,4) (0,1,2,4,5) (1,2) {10,11,11,5,10,5}"
# D β &fras"randomAOC/AOC2025day10.txt"
Digits β βββΈβ+@0β‘10
Parse β β(β‘ββ‘βΈβ @\s)βΈβ @\n
Partβ β (
β‘β(
=@#βββββΒ°β‘Β°ββΒ―1 # target
ββ¬0β‘β(Β°βDigits) # presses
β§»β’path(β‘ββ |=0/+) # find shortest path
)
/+-1
)
Partβ Parse D
I've given up on Part 2. I knew what I needed to do but didn't have the understanding of how to use the matrix elimination method to get beyond the first stages. But I did find this:
How to solve part 2 without libraries
This is a solver written totally from scratch in Dart, so easily readable unlike some other languages :-):
[https://github.com/ayoubzulfiqar/advent-of-code/blob/main/2025/Dart/Day10/part_2.dart](GitHub link)
There's lots of parallelism (that's over the top for this problem), but the core solveSystem method is very clearly written, just long...