Add after-thought for day 1

This commit is contained in:
Adam Millerchip 2020-12-01 14:47:20 +09:00
parent 3d2d6e3a39
commit fcb8e19236

View file

@ -23,3 +23,10 @@ Thoughts:
Use a comprehension over two versions of the remaining list to efficiently compare the three items. 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: ...