Irrelevant subset ordering

In math, set abstraction does not impose any conditions on ordering, because a set by definition is unordered. Therefore the condition of ordering subsets has no sense either, it is not main task of the problem (i. e. generating set of subsets), so it should be removed.

Click here to start solving coding interview questions