UVa 10098
From Algorithmist
Contents |
[edit] 10098 - Generating Fast, Sorted Permutation
[edit] Summary
Generate all unique permutations in sorted order.
[edit] Explanation
Use the C++ stl permutation and you should be able to pass the tests.
[edit] Input
3 ab abc bca
[edit] Output
ab ba abc acb bac bca cab cba abc acb bac bca cab cba

