https://kotlinlang.org logo
#advent-of-code
Title
# advent-of-code
h

holgerbrandl

12/02/2017, 4:31 PM
@andyb d2 part 1 would be more concise by using
max
min
instead of folding. See my solution above.
a

andyb

12/02/2017, 4:34 PM
That's fair enough. I debated how many entries would be in the list & so went with a solution that I could be sure ran in O(n) time.
2 Views