aboutsummaryrefslogtreecommitdiff
path: root/aoc2023-other
diff options
context:
space:
mode:
authorHJ <thechairman@thechairman.info>2023-12-23 11:08:28 -0500
committerHJ <thechairman@thechairman.info>2023-12-23 11:08:28 -0500
commitfcf2ad8776a124274b9c80a7df1f49ee7e3b363c (patch)
tree2c31bc27ea935669df0ac33b76f82b3c52cdfea8 /aoc2023-other
parent3426d1539686b5a25b1d3120b260585c708f5899 (diff)
downloadgleam_aoc-fcf2ad8776a124274b9c80a7df1f49ee7e3b363c.tar.gz
gleam_aoc-fcf2ad8776a124274b9c80a7df1f49ee7e3b363c.zip
day 23 racket complete
Diffstat (limited to 'aoc2023-other')
-rw-r--r--aoc2023-other/day-23/day-23.rkt30
1 files changed, 2 insertions, 28 deletions
diff --git a/aoc2023-other/day-23/day-23.rkt b/aoc2023-other/day-23/day-23.rkt
index ba8ba83..0430255 100644
--- a/aoc2023-other/day-23/day-23.rkt
+++ b/aoc2023-other/day-23/day-23.rkt
@@ -2,35 +2,9 @@
(require advent-of-code
threading
- graph
- data/queue)
+ graph)
-(define input*
- "#.#####################
-#.......#########...###
-#######.#########.#.###
-###.....#.>.>.###.#.###
-###v#####.#v#.###.#.###
-###.>...#.#.#.....#...#
-###v###.#.#.#########.#
-###...#.#.#.......#...#
-#####.#.#.#######.#.###
-#.....#.#.#.......#...#
-#.#####.#.#.#########v#
-#.#...#...#...###...>.#
-#.#.#v#######v###.###v#
-#...#.>.#...>.>.#.###.#
-#####v#.#.###v#.#.###.#
-#.....#...#...#.#.#...#
-#.#########.###.#.#.###
-#...###...#...#...#.###
-###.###.#.###v#####v###
-#...#...#.#.>.>.#.>.###
-#.###.###.#.###.#.#v###
-#.....###...###...#...#
-#####################.#")
-
-(define input (fetch-aoc-input (find-session) 2023 23 #:cache "."))
+(define input (fetch-aoc-input (find-session) 2023 23 #:cache #true))
(define trails
(for*/hash ([(row r) (in-indexed (string-split input "\n"))]
[(col c) (in-indexed row)]