Problem
Return true if s3 can be formed by interleaving s1 and s2: splitting both into pieces and merging the pieces so that each string's characters keep their original order. Every character of s1 and s2 must be used exactly once.
Example 1
- Input
- s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"
- Output
- true
Example 2
- Input
- s1 = "aabcc", s2 = "dbbca", s3 = "aadbbbaccc"
- Output
- false
Example 3
- Input
- s1 = "", s2 = "", s3 = ""
- Output
- true
Constraints
0 <= s1.length, s2.length <= 1000 <= s3.length <= 200All strings contain only lowercase letters.