Simplify the subset generation for distinct integers, and compare the two solutions for distinct integers and duplicated integers in the set.