I am thinking about crypt kicker problem. I think I can solve it by brute-force trying all permutations of the letters (perhaps with some optimizations). However the worst-case complexity of this solutions looks like O(permutations of alphabet * number of words)
.
Is it correct? Is there a solution with less complexity in the worst case?