摘要:
这两道题很像。都可以用Sliding Window来解。 Leetcode 424: Longest Repeating Character Replacement 要求仅换K次,变成最长同样字符的continuous string,而optimal转换条件是 用string的长度 最多字符出现个数 阅读全文
posted @ 2016-11-17 23:47
stepsma
阅读(196)
评论(0)
推荐(0)
2016年11月17日