what is the use of if statement in line 26.
Sanket and string problem
@S15
hello siddhant
freq[0] and freq[1] is having count of char a and char b so in line no 26 we are checking whether min freqency of either a or b exceeds k or not . if it exceeds then it is time to shrink the window by moving left pointer forward.
can u give some test case so that i can understand where line 26 is used?
dry run for input aaabbb and k=2