• + 0 comments

    function getNode(head, positionFromTail) {

    const dict = {} let i=0 while(head){ dict[i] = head.data; i++ head=head.next } i=i-1; return dict[i-positionFromTail]

    }