Skip to content

Commit 92bf438

Browse files
Update algorithms/stack/minimum_string_length_after_removing_substrings/README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent f3d4c94 commit 92bf438

File tree

1 file changed

+3
-3
lines changed
  • algorithms/stack/minimum_string_length_after_removing_substrings

1 file changed

+3
-3
lines changed

algorithms/stack/minimum_string_length_after_removing_substrings/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Example 4:
2121
Input: s = "ABFCACDB"
2222
Output: 2
2323
Explanation: We can do the following operations:
24-
- Remove the substring "ABFCACDB", so s = "FCACDB".
25-
- Remove the substring "FCACDB", so s = "FCAB".
26-
- Remove the substring "FCAB", so s = "FC".
24+
- Remove the substring "AB", so s = "FCACDB".
25+
- Remove the substring "CD", so s = "FCAB".
26+
- Remove the substring "AB", so s = "FC".
2727
So the resulting length of the string is 2.
2828
It can be shown that it is the minimum length that we can obtain.
2929
```

0 commit comments

Comments
 (0)