[Jprogramming] Permutations

David Vaughan purpleblues13 at googlemail.com
Fri Sep 23 05:41:11 HKT 2011


Hi, what is the best (fastest) way to check whether a number is a permutation of another number?
I've tried listing all permutations of one number and checking whether the other number is in the list of permutations. This seems pretty slow, so I was hoping for a faster method.

Thanks.


More information about the Programming mailing list