Skip to content

Commit 89fa4e6

Browse files
authored
Update copy_list_with_random_pointer.py
1 parent 28b1a0d commit 89fa4e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

copy_list_with_random_pointer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# coding: utf-8
22

33
class Solution:
44
# @param head: A RandomListNode
@@ -38,4 +38,6 @@ def copyRandomList(self, head):
3838
new_tail = node
3939
new_tail.next = None
4040
node = prev.next
41-
return new_head
41+
return new_head
42+
43+
# medium: http://lintcode.com/zh-cn/problem/copy-list-with-random-pointer/

0 commit comments

Comments
 (0)