From implementing classic sorting algorithms to comparator tricks, quickselect, and merge-sort-based counting problems.