• + 0 comments
    def getNode(llist, positionFromTail):
        len1 = 0
        temp = llist
        while temp:
            len1 += 1
            temp = temp.next
        temp = llist
        for i in range(len1 - positionFromTail - 1):
            temp = temp.next
        return temp.data