Skip to content

Files

Latest commit

e1abef0 · Mar 17, 2020

History

History
55 lines (23 loc) · 756 Bytes

File metadata and controls

55 lines (23 loc) · 756 Bytes

Description

Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.

Example 1:

Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"

Output: true

Example 2:

Input: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbbaccc"

Output: false

Solutions

Python3

Java

...