Approach hintTry it first, then revealHide
Sort first so equal values are adjacent. Within one recursion level, skip an element equal to the previous one considered at that level, which prevents generating the same subset twice.
Sort first so equal values are adjacent. Within one recursion level, skip an element equal to the previous one considered at that level, which prevents generating the same subset twice.