Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
demiazz committed Dec 2, 2024
1 parent 14ce8da commit 67f39a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/year_2024/day_01.ml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ let parse input =
input |> Parse.lines_of process
;;

(* NOTE: For part one we can not read sequence of pairs, and then convert it
to list and sort. I think, we can use sorting tree here, and write
to two tries in parallel, and then just count result. *)
module Part_one = struct
let split =
let fold (ls, rs) (l, r) = l :: ls, r :: rs in
Expand Down

0 comments on commit 67f39a9

Please sign in to comment.