摘要: Given a string s, return the number of substrings that have only one distinct letter. Example 1: Input: s = "aaaba" Output: 8 Explanation: The substri 阅读全文
posted @ 2020-07-20 13:50 CNoodle 阅读(603) 评论(0) 推荐(0)
摘要: Given a string s and an integer k, return the number of substrings in s of length k with no repeated characters. Example 1: Input: s = "havefunonleetc 阅读全文
posted @ 2020-07-20 05:29 CNoodle 阅读(254) 评论(0) 推荐(0)