-
-
Save alexnikol/02c6ec6a69ca7944bf59444091fdb39c to your computer and use it in GitHub Desktop.
Print the Elements of a Linked List HackerRank Exercise. Testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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