Hey! After a lot tries I wrote this code but this is only able to pass the first case, can you please correct this code.
Sanket and Strings Problem
for test case
2
abbbababbaba
answer should be 8 not 7
debug for this
Can You please suggest what is to be done? Iām not able to figure out. Thanks
while(right+1<s.length() && s.charAt(right+1) == c)
line 15