diff options
author | J.J <thechairman@thechairman.info> | 2023-12-21 16:23:28 -0500 |
---|---|---|
committer | J.J <thechairman@thechairman.info> | 2023-12-21 16:23:28 -0500 |
commit | 2464f97663b8e8b3754193569b6da26ce95c1efe (patch) | |
tree | 2ce275b3c826cbbc5e8b050c5da3fa46bfae61b8 | |
parent | 0391684ead8220182c378cd0c88dfafc27b9e69d (diff) | |
download | gleam_aoc-2464f97663b8e8b3754193569b6da26ce95c1efe.tar.gz gleam_aoc-2464f97663b8e8b3754193569b6da26ce95c1efe.zip |
day 21 racket complete
-rw-r--r-- | aoc2023-other/day-21/day-21.rkt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/aoc2023-other/day-21/day-21.rkt b/aoc2023-other/day-21/day-21.rkt index b6abbda..8d73a7f 100644 --- a/aoc2023-other/day-21/day-21.rkt +++ b/aoc2023-other/day-21/day-21.rkt @@ -37,15 +37,9 @@ ;; part 2 ;; the growth of the steps pattern is regular and quadratic ;; the rock pattern has aisles in it that allow the steps pattern to expand freely -;; such that it will cross from one side to another in X steps +;; such that it will cross from one side to another in X steps ;; where X is the height/width of the repeated section -;; cycles | filled segments -;; ------ | --------------- -;; 1/2 | 1 -;; 1-1/2 | 2 -;; 2-1/2 | | - (define grid-size (~> input (string-split "\n") length)) (define half-size (/ (sub1 grid-size) 2)) |