Quick thought to come back to
This commit is contained in:
parent
97d2ca55e7
commit
35742a00a3
|
@ -22,6 +22,7 @@ proc part2*(s: Stream): int =
|
||||||
var i = 0
|
var i = 0
|
||||||
while true:
|
while true:
|
||||||
# TODO: this takes too long, need to learn the math?
|
# TODO: this takes too long, need to learn the math?
|
||||||
|
# maybe between each bus there is a regular period of these "coincidences" and we can reduce along those?
|
||||||
for j in 1..<ss.len:
|
for j in 1..<ss.len:
|
||||||
if bb.contains j:
|
if bb.contains j:
|
||||||
let d = i+j
|
let d = i+j
|
||||||
|
|
Loading…
Reference in a new issue