Delete Node in a Linked List 2020-09-21 00:16

Problem Description

public void deleteNode(ListNode node) {
    ListNode next = node.next;
    node.val = next.val;
    node.next = next.next;
}
Runtime Memory
0 ms 38.3 MB

henryxi leetcode list

EOF