How to slove this with char array

this gives wrong o/p , mistake may be in line 29 onwards.

i can do this by string but i want to use character array
like i do ,check you will understand my mistake

please make changes what i did wrong and use char array

hi @mahroosanwar0901_2642b14836027bbf
I have made changes in ur code… its working fine and passing all test cases now…

1 Like

ohh man my mistake​:man_facepalming::man_facepalming::man_facepalming: . Thanks So much You can mark as resolve

1 Like

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.