why my code result differs from 1 plz check recursive code
Edit distance--------------
Hello @riprogerdep,
I have corrected your code:
Refer to comments.
Hope, this would help.
Give a like if you are satisfied.
plz make change to my code …you have overwritten your code i can’t understand
Hey @riprogerdep,
That is your code only.
I have not overwritten anything.
The only change I have mad in your code is:
In the base cases:
- if(in[i]==’\0’)
- if(out[j]==’\0’)
You have to return 0.
This is the only change i have made.