Menu
×
×
Correct!
Exercise:Complete the code for the Linked List traversal function.
def traverseAndPrint(head):
currentNode = @(4)
while currentNode:
print(currentNode.data, end=" -> ")
currentNode = currentNode.@(4)
print("null")
def traverseAndPrint(head):
currentNode = head
while currentNode:
print(currentNode.data, end=" -> ")
currentNode = currentNode.next
print("null")
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 43 exercises.
Are you sure you want to continue?