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