• + 0 comments

    Python Solution:

    def deleteNode(llist, position):

    cur = llist
    if position == 0:
        return llist.next
    else:
    
        for i in range(position):
            prev = cur
            cur = cur.next
        prev.next = cur.next
    return llist