nth_element « STL Algorithms Sorting « C++






1.Illustrating the generic nth_element algorithm
2.Use nth_element to extract the four lowest elements
3.Use nth_element to extract the four highest elements
4.Use nth_element with custom function to extract the four highest elements
5.Finding the Median