23
π¬ - 2026 DAY 3 SOLUTIONS - π¬
(programming.dev)
An unofficial home for the advent of code community on programming.dev! Other challenges are also welcome!
Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.
Everybody Codes is another collection of programming puzzles with seasonal events.
Solution Threads
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 |
Icon base by Lorc under CC BY 3.0 with modifications to add a gradient
console.log('Hello World')
Uiua
Really just brute force, ~~but it only takes a few seconds~~ (see below). Looking forward to seeing what I missed. [Edit: Tidied up logic.]
I know no-one cares apart from me now, but inspired by some discussion on the Uiua discord, I used complex numbers to simplify calculating the opposite edges, and got rid of expensive
rowsoperations, at the expense of some slightly more convoluted code. But! the following now solves with live data in <0.2 seconds native, 0.4 in Uiua Pad. Marked Experimental as subscriptedtransformis still bleeding edge.Try it here!