Skip to content
Permalink
Browse files
Created partition function ready for quicksort implementation
  • Loading branch information
hortonr6 committed Jul 19, 2019
1 parent e066789 commit 672cf50ad95973b56b28bbec76e96db184f7592d
Showing 1 changed file with 6 additions and 1 deletion.
@@ -15,6 +15,7 @@ def bubbleSort(data):

return data


def mergeSort(data):
'''Sorts a list of elements using merge sort algorithm'''
if len(data) > 1:
@@ -56,7 +57,11 @@ def mergeSort(data):
return data


def quickSort():
def quickSort(data, start, end):
'''Sorts a list using the quick sort algorithm'''
pass

def partition():
pass

inputData = [3, 8, 42, 9, 31, 12, 25]

0 comments on commit 672cf50

Please sign in to comment.