https://kotlinlang.org logo
t

todd.ginsberg

12/09/2018, 5:26 PM
I opted for a LinkedList and added a shift function to it. That way I was only ever looking at the head of the list and it made reasoning about it easier.
👍 1
l

littlelightcz

12/09/2018, 5:49 PM
pretty awesome 🙂, I literally never use LinkedList in my daily job, so I am not very familiar with them what they can do, but these addLast()/removeFirst() combinations seem pretty awesome 🙂. I would say that this seems as one of the cleverest solutions so far, good job! 🙂 K
t

todd.ginsberg

12/09/2018, 6:11 PM
Thanks! I appreciate the kind words.
6 Views