From 9e884919382de10daad7277fdeea2b1c0d7d0608 Mon Sep 17 00:00:00 2001 From: Prasanna Kale Date: Thu, 21 Oct 2021 12:52:39 +0530 Subject: [PATCH] Update Quick sort.md small changes( code format and indentation) --- Algorithms/Sorting Algorithms/Quick sort.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Algorithms/Sorting Algorithms/Quick sort.md b/Algorithms/Sorting Algorithms/Quick sort.md index 25d66df..0771f4f 100644 --- a/Algorithms/Sorting Algorithms/Quick sort.md +++ b/Algorithms/Sorting Algorithms/Quick sort.md @@ -114,7 +114,7 @@ def quickSort(arr, start, end): Quick Sort can be optimized from O(N) and O(N logN) to O(logN) using tail recursion.It reduces the complexity by solving smallest partition first which improves the time complexity of Quick Sort to O(log N). ### Code `C++` -``` +```cpp void QuickSortOptimized(int arr[],int start,int end){ while(start