Watch
1
0
Fork
You've already forked advent-of-code
0

2025 Day 4 Part 2

This commit is contained in:
Jeremy Kaplan 2025-12-14 12:21:39 -05:00
commit 79050036a1

View file

@ -3,10 +3,31 @@
Input ← Lines &fras "input/day04.txt" Input ← Lines &fras "input/day04.txt"
Wall ← ≡◇=@@ Input Wall ← ≡◇=@@ Input
# Removed ? Wall
Step ← |1 (
/⊂ -₁⇡[3 3] /⊂ -₁⇡[3 3]
▽¬⍜⍉(⊡1)⊸⦷0_0 ▽¬⍜⍉(⊡1)⊸⦷0_0
/+ ⬚0˜↻ Wall /+ ⊸⬚0↻
<4 <4
×Wall ×
)
# Removed Wall' ? Wall
Run ← |1.2 (
⍢(
| ⊙(
⊸Step
⟜-
/+♭ /+♭
)
⤙+
≠₀
) 0
)
Part₁ ← /+♭ Step
Part₂ ← ⊙◌ Run
Part₁ Wall
Part₂ Wall