@@ -0,0 +1,591 @@
+%0Apublic class _424LongestRepeatingCharacterReplacement %7B%0A    public int characterReplacement(String s, int k) %7B%0A    %09int len = s.length();%0A        int%5B%5D count = new int%5B26%5D;%0A        int start = 0, maxCount = 0, maxLength = 0;%0A        for (int end = 0; end %3C len; end++) %7B%0A            maxCount = Math.max(maxCount, ++count%5Bs.charAt(end) - 'A'%5D);%0A            while (end - start + 1 - maxCount %3E k) %7B%0A                count%5Bs.charAt(start) - 'A'%5D--;%0A                start++;%0A            %7D%0A            maxLength = Math.max(maxLength, end - start + 1);%0A        %7D%0A        return maxLength;%0A    %7D%0A%7D%0A

Add 424 solution