Determine whether a string can be formed by interleaving two other strings.
Constraints
Example
>>> is_interleave("abc", "def", "adbcef")
True
>>> is_interleave("abc", "def", "abctdef")
False
>>> is_interleave("", "abc", "abc")
True
>>> is_interleave("aabcc", "dbbca", "aadbbbaccc")
False
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints