摘要:
问题: 给定数字n,由n个数字(0~9)构成0~n位数,求构成的数中,不同数位上重复数字的数以外,有多少个数。 Example: Input: 2 Output: 91 Explanation: The answer should be the total numbers in the range 阅读全文
摘要:
问题: 给定一个字符串,进行切分,使得每个切片都是一个回文字符串。将所有切法返回。 Example 1: Input: s = "aab" Output: [["a","a","b"],["aa","b"]] Example 2: Input: s = "a" Output: [["a"]] Con 阅读全文
摘要:
关联问题:排列1:46. Permutations, 排列2:47. Permutations II,组合:77. Combinations 问题: 给定数字1~n,求他们组成的第k个排列。 The set [1, 2, 3, ..., n] contains a total of n! uniqu 阅读全文