Several of these statistics can be computed easily (constant time) if L is already sorted.
L[0], L[n-1], (L[0]+L[n-1])/2, .
We'll talk more about all of these in a moment, and you'll look at mode and rank in the homework.