logo
Interview
    Interview Guide
    Coding Problems List
Sponsored: Coursera
Problems

Interleaving String

Problem

Given three strings: s1, s2, s3, determine whether s3 is formed by the interleaving of s1 and s2.

Example

For s1 = "aabcc", s2 = "dbbca"

When s3 = "aadbbcbcac", return true.

When s3 = "aadbbbaccc", return false.

Online Judge