From 30f454bc2fe8b0d5085ef41014995865c194f243 Mon Sep 17 00:00:00 2001 From: DutchEllie <personal@quenten.nl> Date: Wed, 8 Dec 2021 10:58:56 +0100 Subject: [PATCH] Add some comment --- 6-2/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/6-2/main.go b/6-2/main.go index 478aa46..c196131 100644 --- a/6-2/main.go +++ b/6-2/main.go @@ -8,6 +8,10 @@ import ( "strconv" ) +// This time, instead of decrementing every single fish for every day, I only compute the amount of fish +// I store the amount of fish per their day counter +// the fishies are the stored in a merely 8 integer long slice that stores the amount of fish. +// The index of the slice represents the amount of days left in their cycle func main() { fishies, err := readInput("input") if err != nil {