So here is what I wanna do.
I have a List of ints and I want to compare every possible combination of the elements to an int.
For example. my List contains 2 ints, x and y. I also have an int z.
What I wanna do is check if:
z = x
z = y
z = x + y
z = y + x.
And if one of these returns true i wanna do some stuff.
Of cours my list does not always contain 2 elements but ranges from 1 to 6 elements… so yeah…
Little note: If my Lists contains 3 Elements, for example a, b and c I also wanna check the possibility:
z = a + b …without c…