Skip to content

Commit 2813b65

Browse files
committed
Update solution 237 [Python3]
1 parent c3251a4 commit 2813b65

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Definition for singly-linked list.
2+
# class ListNode:
3+
# def __init__(self, x):
4+
# self.val = x
5+
# self.next = None
6+
7+
class Solution:
8+
def deleteNode(self, node):
9+
"""
10+
:type node: ListNode
11+
:rtype: void Do not return anything, modify node in-place instead.
12+
"""
13+
tmp=node.next
14+
node.val=tmp.val
15+
node.next=tmp.next
16+

0 commit comments

Comments
 (0)