From 2464f97663b8e8b3754193569b6da26ce95c1efe Mon Sep 17 00:00:00 2001 From: "J.J" Date: Thu, 21 Dec 2023 16:23:28 -0500 Subject: day 21 racket complete --- aoc2023-other/day-21/day-21.rkt | 8 +------- 1 file changed, 1 insertion(+), 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)) -- cgit v1.2.3