Quick thought to come back to
This commit is contained in:
parent
97d2ca55e7
commit
35742a00a3
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ proc part2*(s: Stream): int =
|
|||
var i = 0
|
||||
while true:
|
||||
# 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:
|
||||
if bb.contains j:
|
||||
let d = i+j
|
||||
|
|
Loading…
Reference in a new issue