Exemplo n.º 1
0
def testQuick(n, mn, mx):
    L = random.sample(range(mn, mx), n)
    Sorts.quick(L)
    for i in range(len(L) - 2):
        if (L[i] > L[i + 1]):
            return False
    return True