Skip to content

Commit 5f66539

Browse files
committed
#424: description update
1 parent 93df21f commit 5f66539

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c-sharp/Problems/sliding-window/LongestRepeatingCharacterReplacement.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* You are given a string s and an integer k.
66
* You can choose any character of the string and change it to any other uppercase English character.
77
* You can perform this operation at most k times.
8-
*
8+
*
99
* Return the length of the longest substring containing the same letter you can get after performing the above operations.
1010
*
1111
* Example 1:
1212
* Input: s = "ABAB", k = 2
1313
* Output: 4
1414
* Explanation: Replace the two 'A's with two 'B's or vice versa.
15-
*
15+
*
1616
* Example 2:
1717
* Input: s = "AABABBA", k = 1
1818
* Output: 4
@@ -22,7 +22,7 @@
2222
* There may exists other ways to achieve this answer too.
2323
*
2424
* Constraints:
25-
* • 1 <= s.length <= 105
25+
* • 1 <= s.length <= 10^5
2626
* • s consists of only uppercase English letters.
2727
* • 0 <= k <= s.length
2828
**

0 commit comments

Comments
 (0)