-
-
Save alexnikol/d473cb2cfcadfb4fc79065ef70902238 to your computer and use it in GitHub Desktop.
Print the Elements of a Linked List HackerRank Exercise. Realization
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
from linked_list import SinglyLinkedListNode | |
def printLinkedList(head): | |
currentNode = head | |
while currentNode is not None: | |
print(currentNode.data) | |
currentNode = currentNode.next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment