Skip to content

Commit 591bf19

Browse files
committed
LeetCode #143: Reorder List
1 parent e0c55fc commit 591bf19

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

LeetCode/medium/reorder_list_143.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ def __init__(self, val=0, next=None):
88

99

1010
class Solution:
11-
12-
def print_linked_list(self, head):
13-
current = head
14-
while current is not None:
15-
print(current.val, end="")
16-
current = current.next
17-
print()
18-
1911
def reorderList(self, head: Optional[ListNode]) -> None:
2012
slow, fast = head, head
2113

0 commit comments

Comments
 (0)