1,2
2,1
in listbox.
or when I enter 3 in numericupdown, it should create
1,2,3
1,3,2
2,1,3
2,3,1
3,1,2
3,2,1
it is like a binary tree, creating all possible options. please help!!!
1,2
2,1
in listbox.
or when I enter 3 in numericupdown, it should create
1,2,3
1,3,2
2,1,3
2,3,1
3,1,2
3,2,1
it is like a binary tree, creating all possible options. please help!!!
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jun 14, 2013, 5:34 AM
musa demirtasPosted Jun 13, 2013, 11:00 PM
VulpesPosted Jun 13, 2013, 2:56 PM
http://www.freewebs.com/permute/quickperm.html
I'd keep the maximum value of the NumericUpDown control to a fairly low value (say 8), otherwise it will take a long time to compute all the permutations: