My code works for TestCase 1 . But Testcase 2 and 3 are failing.
Can you please help me find out what’s wrong in my code.
My code is here https://ideone.com/1Ajhs7
Failing 2 Testcases
Hello @sayangosw dry run your code for this test case:
1
abbaa
correct ouput should be 2
your code is not ideally correct:
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.