The time complexity for finding all permutations of a string of length n is O(n!). Similarly for a number, n = number of digits in number.
確定! 回上一頁