Example 1
- Input
- s = "rabbbit", t = "rabbit"
- Output
- 3
Use source positions 0 and 1 for r and a, positions 5 and 6 for i and t, then choose b positions (2,3), (2,4), or (3,4). Each increasing index list spells rabbit; these are three distinct embeddings even though their letters coincide.