Skip to content

Commit

Permalink
whoops... I had a negative number error, but I also divided by a nega…
Browse files Browse the repository at this point in the history
…tive number so it went away
  • Loading branch information
devries committed Dec 14, 2023
1 parent 65cb714 commit e1b1032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion day14p2/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1b1032

Please sign in to comment.