Skip to content

Instantly share code, notes, and snippets.

@alexnikol
Created Aug 9, 2020
Embed
What would you like to do?
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