摘要:
问题: 将给定的字符串s,最多能够分割成多少个互不重复的字符串? Example 1: Input: s = "ababccc" Output: 5 Explanation: One way to split maximally is ['a', 'b', 'ab', 'c', 'cc']. Spl 阅读全文
摘要:
问题: 求由n个字符构成,按照字母序排序后,第k个happy string。 happy string定义: consists only of letters of the set ['a', 'b', 'c']. 仅由a,b,c构成 s[i] != s[i + 1] for all values 阅读全文
摘要:
问题: 给定一组字符串,和一个结果字符串,使用0~9对字母进行编码。 使得字符串数组相加后,结果=结果字符串。 求是否可能存在这样的编码。 Each character is decoded as one digit (0 - 9). Every pair of different characte 阅读全文
摘要:
问题: 给定长宽m,n的矩形,将其划分为多个正方形,最少能划分多少个。 Example 1: Input: n = 2, m = 3 Output: 3 Explanation: 3 squares are necessary to cover the rectangle. 2 (squares o 阅读全文
摘要:
问题: 给定一组字符串数组, 有这些字符串合并构成不存在重复字符的“集连字符串” 求该集连字符串最大长度。 Example 1: Input: arr = ["un","iq","ue"] Output: 4 Explanation: All possible concatenations are 阅读全文