updates for prelude changes
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
aoc2024/day21/eg.txt
|
aoc2024/day21/eg.txt
|
||||||
[(0, (3, 1)), (1, (2, 0)), (2, (2, 1)), (3, (2, 2)), (4, (1, 0)), (5, (1, 1)), (6, (1, 2)), (7, (0, 0)), (8, (0, 1)), (9, (0, 2)), (A, (3, 2))]
|
[('0', (3, 1)), ('1', (2, 0)), ('2', (2, 1)), ('3', (2, 2)), ('4', (1, 0)), ('5', (1, 1)), ('6', (1, 2)), ('7', (0, 0)), ('8', (0, 1)), ('9', (0, 2)), ('A', (3, 2))]
|
||||||
part1 126384
|
part1 126384
|
||||||
part2 154115708116294
|
part2 154115708116294
|
||||||
aoc2024/day21/input.txt
|
aoc2024/day21/input.txt
|
||||||
[(0, (3, 1)), (1, (2, 0)), (2, (2, 1)), (3, (2, 2)), (4, (1, 0)), (5, (1, 1)), (6, (1, 2)), (7, (0, 0)), (8, (0, 1)), (9, (0, 2)), (A, (3, 2))]
|
[('0', (3, 1)), ('1', (2, 0)), ('2', (2, 1)), ('3', (2, 2)), ('4', (1, 0)), ('5', (1, 1)), ('6', (1, 2)), ('7', (0, 0)), ('8', (0, 1)), ('9', (0, 2)), ('A', (3, 2))]
|
||||||
part1 248108
|
part1 248108
|
||||||
part2 303836969158972
|
part2 303836969158972
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
aoc2024/day21/eg.txt
|
aoc2024/day21/eg.txt
|
||||||
[(0, (3, 1)), (1, (2, 0)), (2, (2, 1)), (3, (2, 2)), (4, (1, 0)), (5, (1, 1)), (6, (1, 2)), (7, (0, 0)), (8, (0, 1)), (9, (0, 2)), (A, (3, 2))]
|
[('0', (3, 1)), ('1', (2, 0)), ('2', (2, 1)), ('3', (2, 2)), ('4', (1, 0)), ('5', (1, 1)), ('6', (1, 2)), ('7', (0, 0)), ('8', (0, 1)), ('9', (0, 2)), ('A', (3, 2))]
|
||||||
part1 126384
|
part1 126384
|
||||||
part2 154115708116294
|
part2 154115708116294
|
||||||
aoc2024/day21/input.txt
|
aoc2024/day21/input.txt
|
||||||
[(0, (3, 1)), (1, (2, 0)), (2, (2, 1)), (3, (2, 2)), (4, (1, 0)), (5, (1, 1)), (6, (1, 2)), (7, (0, 0)), (8, (0, 1)), (9, (0, 2)), (A, (3, 2))]
|
[('0', (3, 1)), ('1', (2, 0)), ('2', (2, 1)), ('3', (2, 2)), ('4', (1, 0)), ('5', (1, 1)), ('6', (1, 2)), ('7', (0, 0)), ('8', (0, 1)), ('9', (0, 2)), ('A', (3, 2))]
|
||||||
part1 248108
|
part1 248108
|
||||||
part2 303836969158972
|
part2 303836969158972
|
||||||
|
|||||||
@@ -27,10 +27,6 @@ startT s = case unpack s of
|
|||||||
('t' :: _) => True
|
('t' :: _) => True
|
||||||
_ => False
|
_ => False
|
||||||
|
|
||||||
isJust : ∀ a. Maybe a → Bool
|
|
||||||
isJust (Just x) = True
|
|
||||||
isJust _ = False
|
|
||||||
|
|
||||||
checkK3 : Graph → EdgeSet → Edge → Int
|
checkK3 : Graph → EdgeSet → Edge → Int
|
||||||
checkK3 g es (a,b) =
|
checkK3 g es (a,b) =
|
||||||
let cand = fromMaybe Nil $ snd <$> lookupMap b g
|
let cand = fromMaybe Nil $ snd <$> lookupMap b g
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mkdir -p tmp
|
mkdir -p tmp
|
||||||
echo "Test AoC 2024 solutions"
|
echo "Test AoC 2024 solutions"
|
||||||
|
# FIXME - it turns out there are some stack issues here (including length)
|
||||||
NCC="bun run newt.js"
|
NCC="bun run newt.js"
|
||||||
total=0
|
total=0
|
||||||
failed=0
|
failed=0
|
||||||
|
|||||||
Reference in New Issue
Block a user