Join Slack
Powered by
here’s mine btw <https://github.com/felipecsl/adve...
# advent-of-code
f
felipecsl
12/09/2018, 10:43 PM
here’s mine btw
https://github.com/felipecsl/advent-of-code/blob/master/src/main/kotlin/aoc2018/Day9.kt
fairly short this time
👍 1
k
keturn
12/10/2018, 12:33 AM
ooooh, so
that's
how you use LinkedList effectively, it has an iterator with iterator.add and iterator.remove methods. That makes sense.
keturn
12/10/2018, 12:34 AM
I made an attempt at using LinkedList but still using the index-based methods for add and remove, and that performed horribly, for obvious reasons.
f
felipecsl
12/10/2018, 12:51 AM
that was my first solution too, it was very inefficient and never finished for part II. after adapting to use the iterator, it got blazing fast 🙂
5
Views
Open in Slack
Previous
Next