from utils.listNode import ListNode

#237

class Solution:
    def delete_node(self, node):
        # node is not the tail => node.next exists
        node.value = node.next.value
        node.next = node.next.next