验证,校对

This commit is contained in:
jaredliw
2021-07-16 00:06:52 +08:00
parent 4a8c81e88e
commit 88fcd88712
14 changed files with 180 additions and 197 deletions

View File

@@ -131,12 +131,7 @@ var partition = function(head, x) {
Python Code:
```py
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
```python
class Solution:
def partition(self, head: ListNode, x: int) -> ListNode:
pro = head
@@ -161,3 +156,4 @@ class Solution:
small.next = headbig.next
return headsmall.next
```