subset, dp, sort input
subset, dp, avoid duplicates