diff --git a/day-01/internal/one/solve.go b/day-01/internal/one/solve.go index caaa0a6..645f472 100644 --- a/day-01/internal/one/solve.go +++ b/day-01/internal/one/solve.go @@ -38,6 +38,7 @@ func parseLines(r io.Reader) ([]int, []int, error) { scanner := bufio.NewScanner(r) for scanner.Scan() { nums := reNums.FindAllString(scanner.Text(), -1) + left = util.InsertSorted(left, util.MustConv(nums[0])) right = util.InsertSorted(right, util.MustConv(nums[1])) }