mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-02 18:39:09 +08:00
541~1382连接合并+commit之前 gitpull
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
## 583. 两个字符串的删除操作
|
||||
|
||||
题目链接:https://leetcode-cn.com/problems/delete-operation-for-two-strings/
|
||||
[力扣题目链接](https://leetcode-cn.com/problems/delete-operation-for-two-strings/)
|
||||
|
||||
给定两个单词 word1 和 word2,找到使得 word1 和 word2 相同所需的最小步数,每步可以删除任意一个字符串中的一个字符。
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
## 思路
|
||||
|
||||
本题和[动态规划:115.不同的子序列](https://mp.weixin.qq.com/s/1SULY2XVSROtk_hsoVLu8A)相比,其实就是两个字符串可以都可以删除了,情况虽说复杂一些,但整体思路是不变的。
|
||||
本题和[动态规划:115.不同的子序列](https://programmercarl.com/0115.不同的子序列.html)相比,其实就是两个字符串可以都可以删除了,情况虽说复杂一些,但整体思路是不变的。
|
||||
|
||||
这次是两个字符串可以相互删了,这种题目也知道用动态规划的思路来解,动规五部曲,分析如下:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user