I have a list of integers:
List <int> allPossibleValues;
The length of the password:
int passwordLength = 2;
I should generate all possible combinations of the password with the integers from the list:
List <int> allPossibleValues = new List<int>() { 1, 2, 4};
int passwordLength = 2;
Expected result:
List<string> {
"11", "22", "44", "12", "21", "14", "41", "24", "42"
};
How can I create a logic to implement this?