Hi!
How can I implement the folowing:
ABC = BCA - true
BAC = CAB - true
DAB = BCA - false
if (((1 == 1) && (2 == 2) && (3==3)) || ((1==2)&&(2==1)&&(3==3)) || ..... )
return true;
That cannot be the fastest way, right??
And how can I create with a number of elements all possible combinations of them?
A, B, C, D: (unique)
ABC
ACD
ABD
BCD
The method must be very effective and fast because there's a large number of elements to check.
Thanks