10
This is snippet of code solves the interesting (and specialized) problem of generating all permutations of a list. I hope you like recursion.
For exmaple:
permute( [0,1,2] )
would return
[[0,1,2],[0,2,1],[1,0,2],[1,2,0],[2,0,1],[2,1,0]]
For exmaple:permute( [0,1,2] )
would return
[[0,1,2],[0,2,1],[1,0,2],[1,2,0],[2,0,1],[2,1,0]]
4
Utsawin
Go easy on me, my first snippet - plus I am new to VB.NET 2.0... with only basic knowledge of classic VB... Just want to mention that the Permutations function is not actually mine - found it online... (credit where credit's due)
Fairly simple stuff, but had me pulling my hair out - Even Excel has a COMBI function out of the box!
Fairly simple stuff, but had me pulling my hair out - Even Excel has a COMBI function out of the box!









