Problem 9 Delete Linked List

public void deleteNode(ListNode node) {
    node.val = node.nexxt.val;
    node.next = node.next.next;
}

Last updated