here’s mine btw <https://github.com/felipecsl/adve...
# advent-of-code
f
k
ooooh, so that's how you use LinkedList effectively, it has an iterator with iterator.add and iterator.remove methods. That makes sense.
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
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 🙂