Given two strings source and target, return the minimum number of subsequences of source that can be concatenated to form target. If it is impossible to construct target in this manner, return
A subsequence of a string is a new string generated from the original string by deleting some or none of the characters without changing the relative order of the remaining characters.
Constraints:
source.length, target.length
source and target consist of lowercase English letters.
Given two strings source and target, return the minimum number of subsequences of source that can be concatenated to form target. If it is impossible to construct target in this manner, return
A subsequence of a string is a new string generated from the original string by deleting some or none of the characters without changing the relative order of the remaining characters.
Constraints:
source.length, target.length
source and target consist of lowercase English letters.