#adventOfCode day 4 rewritten in C
https://gitlab.cs.washington.edu/fidelp/advent-of-code-2025/-/blob/main/04.c
This is a very simpleminded solution with no algorithmic fanciness: it's performing lots of repeated work in Part B.
- PC - 1 ms
- Raspberry Pi 2: 23 ms
- #ti92 Plus: 10 seconds
It was stunning to see a result returned in just 10 seconds on the #ticalc, rather than minutes for previous days. The performance difference between an interpreter and an optimizing compiler is stark! Also, the TI-92 doesn't have a floating-point coprocessor, which makes Lua in particular struggle to run at speed.