Edit distance--------------

why my code result differs from 1 plz check recursive code

Hello @riprogerdep,

Please share your code.

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.