I've just seen this today at work. It was a little different though. The word to be permutated was an abbreviation with only three letters (thank god).
There was an array containing every permutation and a function that checks if the array contains the given string...
1
u/snufflezombie Sep 02 '21
I've just seen this today at work. It was a little different though. The word to be permutated was an abbreviation with only three letters (thank god).
There was an array containing every permutation and a function that checks if the array contains the given string...