← Goldman Sachs questions

Check if string is an interleaving of two other strings

Filed under Goldman Sachs

Given strings s1, s2, and s3, determine if s3 is formed by interleaving s1 and s2 while maintaining the relative order of characters from s1 and s2.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Goldman Sachs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.