Add after-thought for day 1
This commit is contained in:
parent
3d2d6e3a39
commit
fcb8e19236
1 changed files with 7 additions and 0 deletions
|
@ -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: ...
|
||||
|
||||
|
|
Loading…
Reference in a new issue