Skip to content

Instantly share code, notes, and snippets.

@Partyschaum
Created August 4, 2020 14:32
Show Gist options
  • Save Partyschaum/fb5051493c14649b1f2a23f40accce65 to your computer and use it in GitHub Desktop.
Save Partyschaum/fb5051493c14649b1f2a23f40accce65 to your computer and use it in GitHub Desktop.
var listSize = 1
var node = head
while (node.next != null) {
node = node.next!!
listSize++
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment