correct comment
This commit is contained in:
parent
0f3f6f2875
commit
9bccec439e
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user