文章 2023-01-05 来自:开发者社区

LeetCode 395. Longest Substring with At Least K

DescriptionFind the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than k times.Example 1:Input: s = "aaabb", ....

LeetCode 395. Longest Substring with At Least K
文章 2022-02-16 来自:开发者社区

[LeetCode] Longest Substring with At Most Two Distinct Characters 最多有两个不同字符的最长子串

Given a string S, find the length of the longest substring T that contains at most two distinct characters. For example, Given S = “eceba”, T is “ece” which its length is 3. 这道题给我们一个字符串,让我们求最多有两个不同字符....

文章 2022-02-16 来自:开发者社区

[LeetCode] Longest Substring with At Most K Distinct Characters 最多有K个不同字符的最长子串

Given a string, find the length of the longest substring T that contains at most k distinct characters. For example, Given s = “eceba” and k = 2, T is "ece" which its length is 3. ...

文章 2022-02-16 来自:开发者社区

[LeetCode] Longest Substring with At Least K Repeating Characters 至少有K个重复字符的最长子字符串

Find the length of the longest substring T of a given string (consists of lowercase letters only) such that every character in T appears no less than k times. Example 1: ...

文章 2022-02-16 来自:开发者社区

[LeetCode] Longest Substring with At Most Two Distinct Characters

Problem Description Given a string, find the length of the longest substring T that contains at most 2 distinct characters. For example, Given s = “eceba”, T is "ece" which its length is 3. ...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注