Quote:
We first choose one element from the input numbers which serves as the boundary between
the small and large elements. This element is called the pivot. You can choose any element
for this purpose, and the simplest way is to select the first element in the array, namely 25 in
this example will be the current pivot.
I have choosen the middle one
Code:
pivot=a[(left+right)/2];