From e1b10320c125cf6284a8ce657b732924500e8768 Mon Sep 17 00:00:00 2001 From: Christopher De Vries Date: Thu, 14 Dec 2023 12:32:54 -0500 Subject: [PATCH] whoops... I had a negative number error, but I also divided by a negative number so it went away --- day14p2/solution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day14p2/solution.go b/day14p2/solution.go index 8181f98..9d6a87b 100644 --- a/day14p2/solution.go +++ b/day14p2/solution.go @@ -36,7 +36,7 @@ func Solve(r io.Reader) any { tiltCycle(&platform) cs := platform.checkSum() if v, ok := checksums[cs]; ok && looking { - interval := v - i + interval := i - v start := v span := maxiter - start ncycles := span / interval