mirror of
https://github.com/labuladong/fucking-algorithm.git
synced 2025-07-04 19:28:07 +08:00
Update solution_code.md
This commit is contained in:
@ -19934,7 +19934,7 @@ public:
|
||||
if (word1[i - 1] == word2[j - 1])
|
||||
dp[i][j] = dp[i - 1][j - 1];
|
||||
else
|
||||
dp[i][j] = min({
|
||||
dp[i][j] = min(
|
||||
dp[i - 1][j] + 1,
|
||||
/**<extend up -300>
|
||||

|
||||
@ -19947,7 +19947,7 @@ public:
|
||||
/**<extend up -300>
|
||||

|
||||
*/
|
||||
});
|
||||
);
|
||||
}
|
||||
}
|
||||
// 储存着整个 s1 和 s2 的最小编辑距离
|
||||
@ -19955,7 +19955,7 @@ public:
|
||||
}
|
||||
|
||||
int min(int a, int b, int c) {
|
||||
return min(a, min(b, c));
|
||||
return std::min(a, std::min(b, c));
|
||||
}
|
||||
};
|
||||
```
|
||||
|
Reference in New Issue
Block a user