• + 0 comments

    Python 3

    def getNode(llist, positionFromTail):
        # Write your code here
        spop=[]
        while llist:
            spop.append(llist.data)
            llist=llist.next
        while positionFromTail>0:
            spop.pop()
            positionFromTail=positionFromTail-1
        return spop.pop()