Can you please explain me this test case as given by T.A. as the right output:
2
aabbaababba
My Output:8
Expected Output:6
Please explain how 6 is the output?
Can you please explain me this test case as given by T.A. as the right output:
2
aabbaababba
My Output:8
Expected Output:6
Please explain how 6 is the output?
if you were 2 replace 3rd and 4th b with a the string would become aaaaaababba, which would make the longest substring of only a or b to be of size 6.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.