|
15 | 15 | <p><strong>示例 1:</strong></p>
|
16 | 16 |
|
17 | 17 | <pre>
|
18 |
| -<strong>输入:</strong>s = "rabbbit", t = "rabbit"<code> |
19 |
| -<strong>输出</strong></code><strong>:</strong><code>3 |
20 |
| -</code><strong>解释:</strong> |
21 |
| -如下所示, 有 3 种可以从 s 中得到 <code>"rabbit" 的方案</code>。 |
22 |
| -<code><strong><u>rabb</u></strong>b<strong><u>it</u></strong></code> |
23 |
| -<code><strong><u>ra</u></strong>b<strong><u>bbit</u></strong></code> |
24 |
| -<code><strong><u>rab</u></strong>b<strong><u>bit</u></strong></code></pre> |
| 18 | +<strong>输入:</strong>s = "rabbbit", t = "rabbit" |
| 19 | +<strong>输出</strong><strong>:</strong>3 |
| 20 | +<strong>解释:</strong> |
| 21 | +如下所示, 有 3 种可以从 s 中得到 "rabbit" 的方案。 |
| 22 | +<strong><u>rabb</u></strong>b<strong><u>it</u></strong> |
| 23 | +<strong><u>ra</u></strong>b<strong><u>bbit</u></strong> |
| 24 | +<strong><u>rab</u></strong>b<strong><u>bit</u></strong></pre> |
25 | 25 |
|
26 | 26 | <p><strong>示例 2:</strong></p>
|
27 | 27 |
|
28 | 28 | <pre>
|
29 | 29 | <strong>输入:</strong>s = "babgbag", t = "bag"
|
30 |
| -<code><strong>输出</strong></code><strong>:</strong><code>5 |
31 |
| -</code><strong>解释:</strong> |
32 |
| -如下所示, 有 5 种可以从 s 中得到 <code>"bag" 的方案</code>。 |
33 |
| -<code><strong><u>ba</u></strong>b<u><strong>g</strong></u>bag</code> |
34 |
| -<code><strong><u>ba</u></strong>bgba<strong><u>g</u></strong></code> |
35 |
| -<code><u><strong>b</strong></u>abgb<strong><u>ag</u></strong></code> |
36 |
| -<code>ba<u><strong>b</strong></u>gb<u><strong>ag</strong></u></code> |
37 |
| -<code>babg<strong><u>bag</u></strong></code> |
| 30 | +<strong>输出</strong><strong>:</strong>5 |
| 31 | +<strong>解释:</strong> |
| 32 | +如下所示, 有 5 种可以从 s 中得到 "bag" 的方案。 |
| 33 | +<strong><u>ba</u></strong>b<u><strong>g</strong></u>bag |
| 34 | +<strong><u>ba</u></strong>bgba<strong><u>g</u></strong> |
| 35 | +<u><strong>b</strong></u>abgb<strong><u>ag</u></strong> |
| 36 | +ba<u><strong>b</strong></u>gb<u><strong>ag</strong></u> |
| 37 | +babg<strong><u>bag</u></strong> |
38 | 38 | </pre>
|
39 | 39 |
|
40 | 40 | <p> </p>
|
|
0 commit comments