Explanation could use some work
|
|
5
|
410
|
October 28, 2022
|
See the explanation in the 'Solution' section above. What exact statement or line?
|
|
1
|
49
|
October 25, 2022
|
Input : abdcaab & k=2: How it is giving answer 4?
|
|
1
|
28
|
September 12, 2022
|
Can we replace different characters with the same character or replacing characters must be the same as well
|
|
6
|
159
|
July 28, 2022
|
I have an alternate approach to this question
|
|
1
|
55
|
July 7, 2022
|
Why not just return maxRepeatLetterCount + k
|
|
4
|
365
|
June 21, 2022
|
Aaadbbctbb how is this input handled
|
|
1
|
38
|
June 9, 2022
|
I think there is a bit more intuitive solution without map for this problem
|
|
0
|
60
|
May 2, 2022
|
Error in main() where I can not edit
|
|
3
|
147
|
February 18, 2022
|
Why don’t we need to update maxRepeatLetterCount?
|
|
1
|
231
|
February 6, 2022
|
Longest Substring with Same Letters after Replacement (hard) - Grokking the
|
|
0
|
115
|
January 31, 2022
|
Nvm delete this please
|
|
1
|
198
|
January 21, 2022
|
Longest Substring with Same Letters after Replacement
|
|
1
|
120
|
November 22, 2021
|
Max Repeating Characters
|
|
0
|
113
|
October 14, 2021
|
Longest Substring with Same Letters after Replacement (hard)
|
|
8
|
2111
|
September 20, 2021
|
Why need Math.max on maxLength?
|
|
1
|
167
|
September 10, 2021
|
If statement question
|
|
1
|
108
|
September 10, 2021
|
If I update the maxrepeating for each window, is the complexity still O(N)?
|
|
1
|
110
|
August 27, 2021
|
maxLength = Math.max(maxLength, windowEnd - windowStart + 1);
|
|
4
|
134
|
June 29, 2021
|
The "if" statement might cause some bugs
|
|
4
|
504
|
March 25, 2021
|
Need better explanation and example walk through
|
|
1
|
457
|
February 28, 2021
|
Can't understand why we don't calculate the maxRepeating for each window
|
|
4
|
515
|
December 21, 2020
|
What input will cause it to return -1
|
|
0
|
152
|
February 14, 2020
|
maxRepeatLetterCount keeps track of the GLOBAL maximum, not LOCAL maximum
|
|
0
|
247
|
May 13, 2020
|
Longest Substring with Same Letters after Replacement if condition clarity
|
|
1
|
356
|
April 28, 2020
|
Why use if if statement in the for loop instead of using while loop in the for loop?
|
|
6
|
834
|
July 29, 2019
|