Professional Documents
Culture Documents
Text 7F1DB722B273 1
Text 7F1DB722B273 1
def outputNodes():
global linkedList
global startPointer
currentPointer = startPointer
while currentPointer != -1:
print(str(linkedList[currentPointer].data))
currentPointer = linkedList[currentPointer].nextNode
linkedList[freeList] = newNode
previousPointer = 0
linkedList[previousPointer] = freeList
return True
outputNodes()
outputNodes()