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.

Comments

Popular posts from this blog

Completed the LeetCode #2 adding two numbers