mplatvoet
02/24/2016, 2:55 PMvar tail = head.get()
while (true) {
val next = tail.next
if (next == null) {
return tail
}
tail = next
}
//vs Java
Node tail = head.get();
while(tail.next != null) tail = tail.next;
return tail;
I need to introduce an intermediate val for handling null issues, or use bunny ears