ASCII DIFFERENCE


whats the error?

hello @samardeep

the difference between digits can be of 1 digit or 2 digit.
so u need to check whether u need to call i+2 or i+3.
also the string lenght is increasing so base case i>n will not be correct result.

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.