Coin selection
K-th smallest element; Painter problem