Rearranges the elements in the range [first,last)
, in such a way that the element at the nth position is the element that would be in that position in a sorted sequence. It takes three parameters, the start pointer, pointer to the nth position, and the end pointer. It also rearranges the array in such a way that the values before n
are smaller than arr[n]
and values after n
are greater than arr[n]
.
Pingback: BOOST YOUR CODING SPEED DURING COMPETITIONS | STANDARD TEMPLATE LIBRARY | C++ - MadGhosts
Pingback: anextravout.hatenablog.com