Sorting algorithms/Bogosort: Difference between revisions
Content deleted Content added
m link fix |
|||
Line 286:
std::random_shuffle(begin, end);
}</lang>
Using the is_sorted function, part of the SGI STL implementation and C++11:
{{works with|GCC}}
|