not working kindly help
Not working kindly help
@kartiksaxena2000
As for this current approach , make change in Line No. 12
n=n*10+int(s[l]-'0');
However you will notice that your numbers are reversed of what they should be . This is a problem with your approach. Dry run a small testcase and you will find your mistake. Your are picking the wrong character from string at each instance.
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.