say I have a set of numbers \'0\', \'1\', \'2\', ..., \'9\'. I want to find all numbers that contain exactly one of each of the numbers in my set.
The problem is: Be
To me, it looks like you are looking for all permutations of a given set of elements.
If you use C++ there is a standard function next_permutation() that does exactly what you are looking for. You start with the sorted array and then call next_permutation repeatedly.
The example is here: http://www.cplusplus.com/reference/algorithm/next_permutation/