This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dynamic_program; | |
// Leetcode 72 编辑距离 | |
// 自底向上的方法 | |
class Solution72 { | |
//保存距离 | |
int[][] dist; | |
//保存操作。值 0~3 分别是:0跳过,1插入,2删除,3替换 | |
int[][] act; |