Skip to content

Instantly share code, notes, and snippets.

@Anticubex
Anticubex / AOC6.ua
Created December 8, 2025 06:04
Advent of Code 2025 Day 6 in Uiua
# AOC 2025 Day 6
$ 123 328 51 64
$ 45 64 387 23
$ 6 98 215 314
$ * + * +
Test ←
Parse ← ⍉⇌⊜(⊜□⊸≠@ )⊸≠@\n
Part₁ ← /+≡(⨬/+/×⊓(=@*◇⊢|≡◇⋕)°⊂)
@Anticubex
Anticubex / AOCday1.ua
Created December 4, 2025 22:52
Advent of Code 2025 in Uiua Day 1
# AOC Day 1
# Uiua 0.18.0-dev.3
TestData ← $ L68
$ L30
$ R48
$ L5
$ R60
$ L55
$ L1
@Anticubex
Anticubex / aoc2025_4.ua
Created December 4, 2025 21:42
Advent of Code 2025 Day 4 Uiua solution
# AOC Day 4
# uiua.org/pad
# Uiua 0.18.0-dev.3
$ ..@@.@@@@.
$ @@@.@.@.@@
$ @@@@@.@.@@
$ @.@@@@..@.
$ @@.@@@@.@@
$ .@@@@@@@.@
@Anticubex
Anticubex / rankedpairs.ua
Created October 30, 2025 01:48
Uiua Ranked Pairs Voting
# Ranked Pairs Voting
# Uiua 0.18.0-dev.2
EnumerateRows ← ≡⌟˜⨂
GetRankedPairs ← (
⧅>2⇡
⤚≡⌟[⟜-⊃/+⧻♭>∩⌟(≡⊚⌕)°⊟]
∩⌞▽⊸(¬/=⍉) # Filter ties
≡(⨬∘∩⇌⊸(>°⊟))
⊏⍖⊢⍉