Python: set / dict / Counter / OrderedDict / defaultdict
1. set
参考 Quicksort with Python
参考:
Question: Find the $k$-th Smallest Element in an Unsorted Array
Looks like I’ve been wrong for years… maybe because I am too familiar with the SQL-style groupby operation.