diff --git a/allalgorithms/sorting/bogosort.py b/allalgorithms/sorting/bogosort.py new file mode 100644 index 0000000..bb1d209 --- /dev/null +++ b/allalgorithms/sorting/bogosort.py @@ -0,0 +1,4 @@ +def bogo(x): + while not inorder(x): + shuffle(x) + return x