bogo sort
They don't want me to tell you this, but this is actually the best sorting
algorithm*
*If you get the right input on your first try
bogo sort
They don't want me to tell you this, but this is actually the best sorting
algorithm*
*If you get the right input on your first try
bogo Sort
x = np.array([2, 1, 4, 3, 5])
bogosort(x)
bogo Sort
array([1, 2, 3, 4, 5])
bogo Sort
def bogosort(x):
while np.any(x[:-1] > x[1:]):
np.random.shuffle(x)
return x
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us