Loading problem…
Given strings s and t, count the ways to choose increasing indices from s whose characters spell t. You may delete characters, but cannot reorder them. Different choices of source indices count separately, even when they produce the same text.
Return the count as a number. The final answer fits in a signed 32-bit integer; intermediate counts are not guaranteed to fit in that range.
Example 1:
Example 2:
Example 3: