From 27d7d220aa6db1e12fb26f7c630e5c2dc86f59b4 Mon Sep 17 00:00:00 2001 From: "Richard Horton (hortonr6)" Date: Mon, 22 Jul 2019 11:49:51 +0100 Subject: [PATCH] Tested QuickSort --- Sorting.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sorting.py b/Sorting.py index b7df76d..b3295d2 100644 --- a/Sorting.py +++ b/Sorting.py @@ -101,6 +101,8 @@ def partition(data, start, end): inputData = [3, 8, 42, 9, 31, 12, 25] print(inputData) -#print(bubbleSort(inputData)) -print(mergeSort(inputData)) +#bubbleSort(inputData) +#mergeSort(inputData) +quickSort(inputData, 0, len(inputData) - 1) +print(inputData)