Example 1
Example 2
Example 3
Example 4
1 <= n == source.length <= 3 * 1031 <= pattern.length <= n1 <= targetIndices.length <= ntargetIndices is sorted in ascending order.The input is generated such that targetIndices contains distinct elements in the range [0, n - 1].source and pattern consist only of lowercase English letters.The input is generated such that pattern appears as a subsequence in source.Example 1
Example 2
Example 3
Example 4
1 <= n == source.length <= 3 * 1031 <= pattern.length <= n1 <= targetIndices.length <= ntargetIndices is sorted in ascending order.The input is generated such that targetIndices contains distinct elements in the range [0, n - 1].source and pattern consist only of lowercase English letters.The input is generated such that pattern appears as a subsequence in source.