Explanation could use some work
|
|
5
|
546
|
October 28, 2022
|
See the explanation in the 'Solution' section above. What exact statement or line?
|
|
1
|
123
|
October 25, 2022
|
Input : abdcaab & k=2: How it is giving answer 4?
|
|
1
|
90
|
September 12, 2022
|
Can we replace different characters with the same character or replacing characters must be the same as well
|
|
6
|
455
|
July 28, 2022
|
I have an alternate approach to this question
|
|
1
|
116
|
July 7, 2022
|
Why not just return maxRepeatLetterCount + k
|
|
4
|
487
|
June 21, 2022
|
Aaadbbctbb how is this input handled
|
|
1
|
98
|
June 9, 2022
|
I think there is a bit more intuitive solution without map for this problem
|
|
0
|
127
|
May 2, 2022
|
Error in main() where I can not edit
|
|
3
|
262
|
February 18, 2022
|
Why don’t we need to update maxRepeatLetterCount?
|
|
1
|
367
|
February 6, 2022
|
Longest Substring with Same Letters after Replacement (hard) - Grokking the
|
|
0
|
198
|
January 31, 2022
|
Nvm delete this please
|
|
1
|
269
|
January 21, 2022
|
Longest Substring with Same Letters after Replacement
|
|
1
|
191
|
November 22, 2021
|
Max Repeating Characters
|
|
0
|
176
|
October 14, 2021
|
Longest Substring with Same Letters after Replacement (hard)
|
|
8
|
2509
|
September 20, 2021
|
Why need Math.max on maxLength?
|
|
1
|
352
|
September 10, 2021
|
If statement question
|
|
1
|
171
|
September 10, 2021
|
If I update the maxrepeating for each window, is the complexity still O(N)?
|
|
1
|
175
|
August 27, 2021
|
maxLength = Math.max(maxLength, windowEnd - windowStart + 1);
|
|
4
|
217
|
June 29, 2021
|
The "if" statement might cause some bugs
|
|
4
|
583
|
March 25, 2021
|
Need better explanation and example walk through
|
|
1
|
584
|
February 28, 2021
|
Can't understand why we don't calculate the maxRepeating for each window
|
|
4
|
669
|
December 21, 2020
|
What input will cause it to return -1
|
|
0
|
224
|
February 14, 2020
|
maxRepeatLetterCount keeps track of the GLOBAL maximum, not LOCAL maximum
|
|
0
|
303
|
May 13, 2020
|
Longest Substring with Same Letters after Replacement if condition clarity
|
|
1
|
433
|
April 28, 2020
|
Why use if if statement in the for loop instead of using while loop in the for loop?
|
|
6
|
967
|
July 29, 2019
|