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