Name
  • Sort
Edit
A naive sorting that picks two elements at random and swaps them.

Time Complexity: O(n * n!)

Space Complexity: O(1) Auxiliary

Stable: No


WARNING: This algorithm may never sort the list correctly.

Python Other implementations: PHP