Your question is Interweaving Strings Check. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
An Oscar Health workflow combines two ordered message fragments, such as a member question and a support response. Given strings a, b, and c, determine whether c can be formed by interleaving all characters from a and b while preserving the original left-to-right order within each source string.
Each character in c must come from exactly one of the two input strings. Characters may alternate in any pattern, but characters from the same source cannot be reordered.
Implement is_interleaving(a, b, c).
a, b, and c.True if c is a valid interleaving of a and b; otherwise, return False.def is_interleaving(a, b, c):