Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f31756c

Browse files
Update 0424-longest-repeating-character-replacement.java
1 parent b00a0df commit f31756c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

java/0424-longest-repeating-character-replacement.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
class Solution {
22

3+
4+
//Please see the way sliding window is implemented.
5+
// This is goood as if you go for other way.. will be bit confusing and time consuming.
36
public int characterReplacement(String s, int k) {
47
int[] arr = new int[26];
58
int ans = 0;

0 commit comments

Comments
 (0)