You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/fishercoder/solutions/_583.java
-15
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,5 @@
1
1
packagecom.fishercoder.solutions;
2
2
3
-
/**
4
-
* 583. Delete Operation for Two Strings
5
-
*
6
-
* Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string.
7
-
8
-
Example 1:
9
-
Input: "sea", "eat"
10
-
Output: 2
11
-
12
-
Explanation: You need one step to make "sea" to "ea" and another step to make "eat" to "ea".
13
-
14
-
Note:
15
-
The length of given words won't exceed 500.
16
-
Characters in given words can only be lower-case letters.
0 commit comments