I'm trying to work out a method that would return a list of all combinations of a subset within a set.The method call would look something like getSubsets(7, 3) based on the image below, the returned output I need would be in the form and order of:
123
124
125
126
127
134
135
136
137
145
... and so on
The image below shows exactly how the counting order should go. I've been banging my head on this one for a day can't find a good solution. TIA.
