6 ms·
The classic C/C++ versions are recursive, and using the STL, c++'s quick sort looks very similar to the functional one. From cppreference.com: http://coliru.st
by splinterofchaos 12y ago
The classic C/C++ versions are recursive, and using the STL, c++'s quick sort looks very similar to the functional one.
From cppreference.com: http://coliru.stacked-crooked.com/view?id=0b2cec4d8c69ffaf http://coliru.stacked-crooked.com/view?id=0b2cec4d8c69ffaf
http://en.cppreference.com/w/cpp/algorithm/partition http://en.cppreference.com/w/cpp/algorithm/partition