Search found 3 matches

by slm
18 May 2013 16:06
Forum: DOS Batch Forum
Topic: Generate all possible unique permutations of given string
Replies: 6
Views: 8894

Re: Generate all possible unique permutations of given strin

@Antonio First of all great job. However, just few problems. It doesn't output the identical strings, e.g if i enter bba, i want these too: aaa bbb. 1 last request, how can i implement this into a script i want to make? Like it'll ask for the string and it'll output the permutations without having t...
by slm
18 May 2013 13:29
Forum: DOS Batch Forum
Topic: Generate all possible unique permutations of given string
Replies: 6
Views: 8894

Re: Generate all possible unique permutations of given strin

@foxidrive
Number of unique characters:2.
Length:3.
2^3=8
The purpose for this is to use in a regexp. So generating all the possible strings from a given string with the specified length is what i want.
by slm
18 May 2013 09:28
Forum: DOS Batch Forum
Topic: Generate all possible unique permutations of given string
Replies: 6
Views: 8894

Generate all possible unique permutations of given string

How would this be possible in batch? E.g if a string inputted is abb the total number of different permutations is 8 which are: aaa bbb abb bab bba aab aba baa How would this be possible to code in batch? To generate all the possible unique permutations of a given string like the example given above...