Find the Runner-Up Score!

  • + 1 comment

    Since Python's set abstract type is implemented as a hash table, construction of a set of n items is best case (i.e. low load factor) O(n). Therefore first constructing a set then finding its maximum is still O(n).