The powerset of {1, 2, 3} is:
{1, 2, 3}
{{}, {2}, {3}, {2, 3}, {1, 2}, {1, 3}, {1, 2, 3}, {1}}
Let\'s say I have a Set in Java:<
Set
package problems; import java.util.ArrayList; import java.util.List; public class SubsetFinderRecursive { public static void main(String[] args) { //input int[] input = new int[3]; for(int i=0; i values = new ArrayList(); }