Replace pi recursion?

can we just do
int j=strlen(a)-1;
before left to right shifting.

P.S.: refer the code implementation given in the video

@mehulbhandari358 yes that also works, make sure you a dry once to ensure that its properly working!

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.