Other question on havkerblocks

code: https://ide.codingblocks.com/s/215800 14
question: https://hack.codingblocks.com/app/contests/1289/234/problem
3test case failing (edited)

hello @anubhavb11 there is no need to make character array i have edited your code logic by string and it is passing all the test cases .
https://ide.codingblocks.com/s/330497(corrected code)
i hope i have cleared your doubt .
Happy Learning !!

hello @anubhavb11
I hope I’ve cleared your doubt. I ask you to please mark this doubt as resolved .
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.
Happy Learning !!

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.