You are viewing a single comment's thread. Return to all comments →
My Python Soluction
def getNode(llist, positionFromTail): prev = None curr = llist temp = curr while curr: temp = curr.next curr.next = prev prev = curr curr = temp head = prev curr = head count = 0 while count < positionFromTail: curr = curr.next count += 1 return curr.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 →
My Python Soluction