diff --git a/2020/src/day10.nim b/2020/src/day10.nim index 7a4ee8f..8d7586e 100644 --- a/2020/src/day10.nim +++ b/2020/src/day10.nim @@ -1,7 +1,16 @@ -import streams +import streams, input_helpers, algorithm, sequtils proc part1*(s: Stream): int = - 0 + var d1 = 0 + var d3 = 1 + var nums = @[0].concat(toSeq(s.asInts).sorted) + for i in 1..