https://leetcode-cn.com/problems/delete-node-in-a-linked-list
Java
public void deleteNode(ListNode node) {
node.val = node.next.val;
node.next = node.next.next;
}
https://leetcode-cn.com/problems/delete-node-in-a-linked-list
Java
public void deleteNode(ListNode node) {
node.val = node.next.val;
node.next = node.next.next;
}