395. Longest Substring with At Least K Repeating Characters

class Solution(object):
    def longestSubstring(self, s, k):
        """
        :type s: str
        :type k: int
        :rtype: int
        """
        for c in set(s):
            if s.count(c)

你可能感兴趣的:(395. Longest Substring with At Least K Repeating Characters)