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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 13, 2013, 10:56 AM EDT
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:
musa demirtas7 reputationPosted Jun 13, 2013, 7:00 PM EDT
VulpesRank #55 · 29.2K reputationPosted Jun 14, 2013, 1:34 AM EDT