Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

bogo Sort

def bogosort(x):
    while np.any(x[:-1] > x[1:]):
        np.random.shuffle(x)
    return x
Source by jakevdp.github.io #
 
PREVIOUS NEXT
Tagged: #bogo #Sort
ADD COMMENT
Topic
Name
2+3 =