Permutations of a string containing duplicates (C++ Version) Update: This is part 1 of a 2 part series of posts that discuss generating all possible permutations/anagrams of a given string. This post discusses how to use the next_permutation function provided by the standard C++ library to generate the anagrams iteratively. The next post discusses a custom recursive implementation of how to achieve the same thing. See: Recursively printing all permutations of a string containing duplicate characters.
Read full article from DeeKaying - Geekiness @ IIT Roorkee: Permutations of a string containing duplicates (C++ Version)
No comments:
Post a Comment