1156. Swap For Longest Repeated Character Substring
https://leetcode.com/problems/swap-for-longest-repeated-character-substring
Description
You are given a string text
. You can swap two of the characters in the text
.
Return the length of the longest substring with repeated characters.
Example 1:
Example 2:
Example 3:
Example 4:
Example 5:
Constraints:
1 <= text.length <= 2 * 104
text
consist of lowercase English characters only.
ac
Last updated