While this unit begins with some basic statistics concepts (mean, median, mode, maximum, minimum), it quickly shifts gears to talking about partitioning and sorting lists. A couple of versions of code for finding the kth largest element of a list are presented, leading to an in-depth discussion of heaps, which are a particular type of tree useful in dealing with sorted data.
The problem set for this lesson starts out with two strange problems that don’t seem to line up with anything done in the unit. However, once you realize that the question is really asking for a central value in a list, it’s not a big leap to realize that the unit only covers three central elements in a list: mean, median, and mode. From there it’s pretty easy to either determine which one, or try out all three and see which one works.