For a list of size $n$, the first element is compared with no previous elements, the second element is compared with one previous element, the third element is compared with two previous elements, and so on, until the $n$th element is compared with $n-1$ previous
Show more…