correct comment

This commit is contained in:
David 2021-12-04 09:21:15 -05:00
parent 0f3f6f2875
commit 9bccec439e

View File

@ -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
}
}