摘要: 问题: 设计一个组合指针类,通过给定组合元素characters,要求构成组合的大小combinationLength,实现以下方法 构造方法:CombinationIterator(string characters, int combinationLength) 返回下一个组合:next() 是 阅读全文
posted @ 2021-01-30 18:03 habibah_chang 阅读(86) 评论(0) 推荐(0)
摘要: 问题:给定一串由A~Z构成的字符串(允许重复)。 从中选取任意个字符,构成新的字符串,求可构成的字符串个数。 Example 1: Input: tiles = "AAB" Output: 8 Explanation: The possible sequences are "A", "B", "AA 阅读全文
posted @ 2021-01-30 13:12 habibah_chang 阅读(83) 评论(0) 推荐(0)