🎯
Focusing
Highlights
Pinned Loading
-
Monkey Sort
Monkey Sort 1fn monkey_sort<T: Ord>(arr: &mut [T]) {
2while !is_sorted(arr) {
3arr.shuffle(&mut rand::thread_rng());
4}
5}
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.