问题描述:
给定两个字符串s1, s2,判断字符串s3是否是由s1、s2交错构成。
例子:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", return false.
思路:
代码:Python
时间: 2024-10-28 14:11:28
问题描述:
给定两个字符串s1, s2,判断字符串s3是否是由s1、s2交错构成。
例子:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", return false.
思路:
代码:Python