Just give a group of strings, such as a b c
List all permutations of a b c, that is, the output is as follows
a b c
a c b
b a c
b c a
c a b
c b a
I use the brute-force method, triple for loops can get such results, but the number of characters is not necessarily...
Like this... Ask the expert... Hope to summarize an efficient and practical method...
[ Last edited by pusofalse on 2008-12-28 at 03:32 ]
List all permutations of a b c, that is, the output is as follows
a b c
a c b
b a c
b c a
c a b
c b a
I use the brute-force method, triple for loops can get such results, but the number of characters is not necessarily...
Like this... Ask the expert... Hope to summarize an efficient and practical method...
[ Last edited by pusofalse on 2008-12-28 at 03:32 ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| zzz19760225 | +2 | 2017-11-30 13:27 |
心绪平和,眼藏静谧,无比安稳的火... Purification of soul...Just a false...^_^

