[go: nahoru, domu]

Skip to content

Commit

Permalink
Update LinkedList-QuickSort.py
Browse files Browse the repository at this point in the history
  • Loading branch information
itcharge committed May 16, 2024
1 parent de76fbf commit d28abba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Templates/02.LinkedList/LinkedList-QuickSort.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ def quickSort(self, left: ListNode, right: ListNode):
self.quickSort(left, pi)
self.quickSort(pi.next, right)
return left

def quickSort(self, head):


def sortLinkedList(self, head: ListNode):
if not head or not head.next:
return head
Expand Down

0 comments on commit d28abba

Please sign in to comment.