Search⌘ K
AI Features

Interleaving String

Interleaving String asks whether a target string can be built from two source strings by alternating contiguous pieces while preserving each source's character order.

Statement

You’re given three strings: s1, s2, and s3. Your task is to determine whether s3 can be formed by interleaving s1 ...