<pre><strong>输入: s =</strong>"barfoothefoobarman",<strong> words = </strong>["foo","bar"]<strong><br/>输出:</strong>[0,9]<strong><br/>解释:</strong>从索引 0 和 9 开始的子串分别是 "barfoo" 和 "foobar" 。输出的顺序不重要, [9,0] 也是有效答案。</pre>
<p><strong>示例 2:</strong></p>
<pre><strong>输入: s =</strong>"wordgoodgoodgoodbestword",<strong> words = </strong>["word","good","best","word"]<strong><br/>输出:</strong>[]</pre>
<pre><strong>输入: s =</strong>"barfoothefoobarman",<strong> words = </strong>["foo","bar"]<strong><br/>输出:</strong>[0,9]<strong><br/>解释:</strong>从索引 0 和 9 开始的子串分别是 "barfoo" 和 "foobar" 。输出的顺序不重要, [9,0] 也是有效答案。</pre>
<p><strong>示例 2:</strong></p>
<pre><strong>输入: s =</strong>"wordgoodgoodgoodbestword",<strong> words = </strong>["word","good","best","word"]<strong><br/>输出:</strong>[]</pre>