further improved comment blocks

This commit is contained in:
Ayaan Khan
2020-05-27 18:51:05 +05:30
parent 50d6a14b2a
commit fb1d69fb14

View File

@@ -27,13 +27,13 @@
#include <iostream>
/**
* This function takes last element as pivot, places
* the pivot element at its correct position in sorted
* array, and places all smaller (smaller than pivot)
* to left of pivot and all greater elements to right
* of pivot
* This function takes last element as pivot, places
* the pivot element at its correct position in sorted
* array, and places all smaller (smaller than pivot)
* to left of pivot and all greater elements to right
* of pivot
*
* */
*/
int partition(int arr[], int low, int high) {
int pivot = arr[high]; // taking the last element as pivot