• + 39 comments

    Recursive solution is nice and neat. Linked lists are often naturally handled recursively:

    Node Delete(Node head, int position) {
        if (position == 0){ return head.next; }
        head.next = Delete(head.next, position-1);
        return head;
    }