Problem STONES

Problem-:CodeChef: Practical coding for everyone

My solution-:CodeChef: Practical coding for everyone

It’s passing all the test cases,can anyone help me out where it is failing ??

try this case…

1
a
aaa

ans should be 3…ur code is giving ans as 1…!!!

the 3rd case is given to confuse you…hope this helps…:slight_smile:

1 Like

Yup thanks :slight_smile:

glad could help…:slight_smile: