题目
解答
# python
class Solution:
def deleteNode(self, node):
"""
:type node: ListNode
:rtype: void Do not return anything, modify node in-place instead.
"""
node.val = node.next.val
node.next = node.next.next
// javascript
var deleteNode = function(node) {
node.val = node.next.val;
node.next = node.next.next;
};