Skip to content

Instantly share code, notes, and snippets.

@alexnikol
Created August 9, 2020 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexnikol/02c6ec6a69ca7944bf59444091fdb39c to your computer and use it in GitHub Desktop.
Save alexnikol/02c6ec6a69ca7944bf59444091fdb39c to your computer and use it in GitHub Desktop.
Print the Elements of a Linked List HackerRank Exercise. Testing
# RESULT
node1 = SinglyLinkedListNode(1)
node2 = SinglyLinkedListNode(2)
node3 = SinglyLinkedListNode(3)
node1.next = node2
node2.next = node3
printLinkedList(node1)
#CONSOLE OUTPUT
1
2
3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment