austinpowers
Electrical
- Oct 21, 2005
- 25
suppose i have an intial sequence [1 2 3]
i want to genereate all different possible combinations of sequence like
1 2 3
1 3 2
2 3 1
2 1 3
3 1 2
3 2 1
i want to generate this inside an inner loop,and everytime i come inside this innerloop i want to take a different combination
suppose when i first come inside the inner loop and select a sequence , next time when i come into inner loop again i dont want to select already selected sequence ,so everytime i want to select a different sequence.
can anyone help me with this.
i want to genereate all different possible combinations of sequence like
1 2 3
1 3 2
2 3 1
2 1 3
3 1 2
3 2 1
i want to generate this inside an inner loop,and everytime i come inside this innerloop i want to take a different combination
suppose when i first come inside the inner loop and select a sequence , next time when i come into inner loop again i dont want to select already selected sequence ,so everytime i want to select a different sequence.
can anyone help me with this.