Help me out in this problem


codeforces problem
it is giving tle

https://codeforces.com/problemset/problem/1076/A

@KartikKhariwal are u there ?

yup wait …

@Kartikkhariwal1 okay

@Kartikkhariwal1 are u there ?

Hey @shivammishra20121999
Yes I am here
Your code is correct according to me except one change in condition it should be count==0 ,you are working on character array instead of string maybe that’s why its slower.
Can’t say for sure.
So do one thing revoke this and reopen so that any other TA can accept it and will look into it :slight_smile: