摘要: Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the following 3 operations permitted on a word:a) Insert a characterb) Delete a characterc) Replace a character[解题思路]这里用ed(s1, s2)来表示s1, s2之间的edit distanceba 阅读全文
posted @ 2013-08-21 16:03 feiling 阅读(595) 评论(0) 推荐(0) 编辑