Java/Delete Node in a Linked List.java
<reponame>Kyrylo-Ktl/LeetCode-Solutions<filename>Java/Delete Node in a Linked List.javapublic class Solution {

    /**
     * Time:   O(1)
     * Memory: O(1)
     */
    public void deleteNode(ListNode node) {
        node.val  = node.next.val;
        node.next  = node.next.next;
    }
}
