diff --git a/2024/01.odin b/2024/01.odin index c1f4b75..c67609d 100644 --- a/2024/01.odin +++ b/2024/01.odin @@ -1,7 +1,7 @@ package aoc -import "core:math" import "core:fmt" +import "core:math" import "core:sort" import "core:strconv" import "core:strings" @@ -18,24 +18,25 @@ day01 :: proc() { b, _ := strconv.parse_int(sp[1]) append(&left, a) append(&right, b) + delete(sp) } sort.quick_sort(left[:]) sort.quick_sort(right[:]) - + p1: int - for i in 0..