iphone Programming Glossary: pos1
Permutations/Anagrams in Objective-C — I am missing something http://stackoverflow.com/questions/6617253/permutations-anagrams-in-objective-c-i-am-missing-something NSInteger perm const NSInteger size slide down the array looking for where we're smaller than the next guy NSInteger pos1 for pos1 size 1 perm pos1 perm pos1 1 pos1 1 pos1 if this doesn't occur we've finished our permutations the array is reversed.. perm const NSInteger size slide down the array looking for where we're smaller than the next guy NSInteger pos1 for pos1 size 1 perm pos1 perm pos1 1 pos1 1 pos1 if this doesn't occur we've finished our permutations the array is reversed 1 2.. size slide down the array looking for where we're smaller than the next guy NSInteger pos1 for pos1 size 1 perm pos1 perm pos1 1 pos1 1 pos1 if this doesn't occur we've finished our permutations the array is reversed 1 2 3 4 4 3 2 1 if pos1..
|