Activity selection: greedily pick the interval that ends earliest and doesn't overlap. Provably optimal for maximizing count.