¡@

Home 

2014/10/15 ¤U¤È 10:12:33

iphone Programming Glossary: perm

Permutations/Anagrams in Objective-C — I am missing something

http://stackoverflow.com/questions/6617253/permutations-anagrams-in-objective-c-i-am-missing-something

code below regarding my question Per this stack overflow question I used Pegolon's approach to generating all possible permutations of a group of characters inside an NSString. However I am now trying to get it to not just generate an ANAGRAM which.. group of characters inside an NSString. However I am now trying to get it to not just generate an ANAGRAM which is all permutations of the same length but all possible combinations any length of the characters in a string. Would anyone know how.. like I want them not just an array of characters in another array . I am assuming the magic would happen in pc_next_permutation anyway but thought I would mention it. In NSArray Permutation.h #import Foundation Foundation.h @interface NSArray..