You are viewing a single comment's thread. Return to all comments →
def getNode(llist, positionFromTail): # Write your code here index = 0 result = llist current = llist
while current: if index > positionFromTail: result = result.next current = current.next index += 1 return result.data
Seems like cookies are disabled on this browser, please enable them to open this website
Get Node Value
You are viewing a single comment's thread. Return to all comments →
def getNode(llist, positionFromTail): # Write your code here index = 0 result = llist current = llist