热门标签
更多>
搜索结果
查询Tags标签: 1156,共有 2条记录-
[LeetCode] 1156. Swap For Longest Repeated Character Substring 单字符重复子串的最大长度
Given a string text, we are allowed to swap two of the characters in the string. Find the length of the longest substring with repeated characters. Example 1: Input: text = "ababa" Output: 3 Explanation: We can swap the first b with the last…
2021/7/9 23:36:10 人评论 次浏览 -
[LeetCode] 1156. Swap For Longest Repeated Character Substring 单字符重复子串的最大长度
Given a string text, we are allowed to swap two of the characters in the string. Find the length of the longest substring with repeated characters. Example 1: Input: text = "ababa" Output: 3 Explanation: We can swap the first b with the last…
2021/7/9 23:36:10 人评论 次浏览