diff --git a/aoc2024/Day21.newt.golden b/aoc2024/Day21.newt.golden index 08cb442..8bbb18a 100644 --- a/aoc2024/Day21.newt.golden +++ b/aoc2024/Day21.newt.golden @@ -1,8 +1,8 @@ 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 part2 154115708116294 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 part2 303836969158972 diff --git a/aoc2024/Day21monad.newt.golden b/aoc2024/Day21monad.newt.golden index 08cb442..8bbb18a 100644 --- a/aoc2024/Day21monad.newt.golden +++ b/aoc2024/Day21monad.newt.golden @@ -1,8 +1,8 @@ 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 part2 154115708116294 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 part2 303836969158972 diff --git a/aoc2024/Day23.newt b/aoc2024/Day23.newt index a65fe9f..9def289 100644 --- a/aoc2024/Day23.newt +++ b/aoc2024/Day23.newt @@ -27,10 +27,6 @@ startT s = case unpack s of ('t' :: _) => True _ => False -isJust : ∀ a. Maybe a → Bool -isJust (Just x) = True -isJust _ = False - checkK3 : Graph → EdgeSet → Edge → Int checkK3 g es (a,b) = let cand = fromMaybe Nil $ snd <$> lookupMap b g diff --git a/scripts/aoc b/scripts/aoc index 85adbec..56a539f 100755 --- a/scripts/aoc +++ b/scripts/aoc @@ -1,6 +1,7 @@ #!/bin/sh mkdir -p tmp echo "Test AoC 2024 solutions" +# FIXME - it turns out there are some stack issues here (including length) NCC="bun run newt.js" total=0 failed=0