From 006690e17d083a0750b7437e701bd097d73813d1 Mon Sep 17 00:00:00 2001 From: aprzn Date: Sun, 3 Dec 2023 15:34:55 -0500 Subject: [PATCH] day 3 optimization, unexpectedly slow `pack` --- day03.ua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day03.ua b/day03.ua index 6881811..36ac2c7 100644 --- a/day03.ua +++ b/day03.ua @@ -13,7 +13,7 @@ Table ← ⊜(⊂:@.)≠@\n. Adjacency ← ↯¯1_2-1⇡3_3 Numbers ← ⊜parse×⊃(≤@9|≥@0).♭ -Classify ← ⍜(♭|⍜(⊜□|⊐≡(↯⧻)⊃(∘|+@\x80⇡⧻))×⊃(≤@9|≥@0).) +Classify ← ⍜(♭|⍜(⊜□|≡(□↯⧻⊔)⊃(∘|+@\x80⇡⧻))×⊃(≤@9|≥@0).) PartI ← ( ×⊃(<@\x80|≠@.|∘)