Skip to content

Commit 6512666

Browse files
committed
part 2 wip
1 parent e079bdd commit 6512666

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

2023/src/bin/day-15/main.ua

+25-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Lib ← &i "../../lib.ua"
55

66
# c n => n
77
F ← |2 ◿256 ×17 + -@\0
8-
# s n => s n
8+
# s n => s-1 n
99
G ← |2.2 :F ⊙: ⊃(⊢|↘1)
1010
# s => n
1111
H ← |1 ;⍢(G|>0⧻) :0
@@ -20,4 +20,27 @@ SolvePartOne ← |1 (
2020
⍤:≍, 516804 SolvePartOne &fras "input"
2121
---
2222

23-
&p $"Part 1: _" SolvePartOne &fras "input"
23+
# &p $"Part 1: _" SolvePartOne &fras "input"
24+
25+
"rn=1"
26+
≠, @=
27+
⊜□
28+
29+
# &fras "example_1"
30+
# ⊜□≠, @,
31+
32+
# ▽≡(⊐∊@=).
33+
# ⊐≡(?□? ⊜□ ?≠, ?@=?)
34+
35+
# "rn=1"
36+
# ⊜□≠, @=
37+
# ∊@=
38+
# "cm-"
39+
# ∊@=
40+
41+
{⊃∘H ."rn"}
42+
{⊃∘H ."cm"}
43+
{⊃∘H ."qp"}
44+
{⊃∘H ."pc"}
45+
46+
# känns som det börjar bli dags att rapportera den där partition-"buggen"

0 commit comments

Comments
 (0)