mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<pre>
|
||||
<strong>Input:</strong> word = "cbaaaabc", forbidden = ["aaa","cb"]
|
||||
<strong>Output:</strong> 4
|
||||
<strong>Explanation:</strong> There are 9 valid substrings in word: "c", "b", "a", "ba", "aa", "bc", "baa", "aab", and "aabc". The length of the longest valid substring is 4.
|
||||
<strong>Explanation:</strong> There are 11 valid substrings in word: "c", "b", "a", "ba", "aa", "bc", "baa", "aab", "ab", "abc" and "aabc". The length of the longest valid substring is 4.
|
||||
It can be shown that all other substrings contain either "aaa" or "cb" as a substring. </pre>
|
||||
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
Reference in New Issue
Block a user