diff --git a/03/main.go b/03/main.go index 34d84eb..f72299c 100644 --- a/03/main.go +++ b/03/main.go @@ -39,7 +39,7 @@ func partOne() { lines++ n, _ := strconv.ParseInt(line, 2, 64) for i := 0; i < len(line); i++ { - // check if the number in the i'th column is 1, then bit-shift back to the 1s place to add it if it is + // add the number (1 or 0) in the i'th place to r[i] r[i] += (n & (1 << i)) >> i } }