Bubble sort needs n * (n - 1) // 2 comparisons… | StemPy Lab