Hi
i have an array like this
groupid number
1 235
2 987
3 781
4 879
and so on .....
and i want to make a combination of groups that has sum between say 1000 and 1500 or what ever.
how to iterate through all possible combinations of all items (i mean if i have 10 groups it will be 10 power 10 combinations right?) so how to do that?
thanks in advance.
i have an array like this
groupid number
1 235
2 987
3 781
4 879
and so on .....
and i want to make a combination of groups that has sum between say 1000 and 1500 or what ever.
how to iterate through all possible combinations of all items (i mean if i have 10 groups it will be 10 power 10 combinations right?) so how to do that?
thanks in advance.