摘要: 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---Idea: DPi->word1, j->word2insert = 1 阅读全文
posted @ 2013-10-01 02:54 LEDYC 阅读(204) 评论(0) 推荐(0)