i have started from first to last rather than last to first.
but my memo table shows garbage value on printing
Dp edit distance
Hello @Krishna-Singh-2678805765519156,
Your Code is logically correct.
I have checked it for different test cases.
Even the values stored at memo matrix are correct.
But, your code is showing the ASCII code of the value stored in memo matrix.
Reason:
The datatype of memo is char
I have corrected your code:
Hope, this would help.
Give a like if you are satisfied.