Worked on the question #72-Edit Distance
https://leetcode.com/problems/edit-distance/description/
First tried the recursion based simple Edit Distance solution, it timed up on test case:
"dinitrophenylhydrazine"
"benzalphenylhydrazone"
Then I had to rely on an implementation of the standard Levenshtein Algorithm to beat the clock.
First tried the recursion based simple Edit Distance solution, it timed up on test case:
"dinitrophenylhydrazine"
"benzalphenylhydrazone"
Then I had to rely on an implementation of the standard Levenshtein Algorithm to beat the clock.
Comments
Post a Comment