diff --git a/day1/README b/day1/README index dd58507..f415ed0 100644 --- a/day1/README +++ b/day1/README @@ -23,3 +23,10 @@ Thoughts: Use a comprehension over two versions of the remaining list to efficiently compare the three items. +Would have been simpler to use a comprehension for all 3 elements (and for the 2 elements from part 1) +rather than using recursion for the outer loop. + +E.g. + + for i <- list, j <- list, k <- list, do: ... +