From 014890191ac7e879e7b1dc40da9b65e815224ddb Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 10 Dec 2020 01:08:23 -0600 Subject: [PATCH] Day 10p1? --- 2020/src/day10.nim | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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..