a*******y 发帖数: 1040 | 1 leetcode那个interleave的例子怎么是true的啊
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", return false.
那个true的case | l*****a 发帖数: 14598 | 2 Why false
【在 a*******y 的大作中提到】 : leetcode那个interleave的例子怎么是true的啊 : For example, : Given: : s1 = "aabcc", : s2 = "dbbca", : When s3 = "aadbbcbcac", return true. : When s3 = "aadbbbaccc", return false. : 那个true的case
| s******c 发帖数: 99 | 3 aa from s1
dbbc from s2
bc from s1
a from s2
c from s1 | g*******n 发帖数: 214 | 4 搭车问道题, leetcode的那个scrambled string
"abcd", "bdca" true 为什么是对的?
不是应该ab在一起,cd在一起,再scramble么?为什么bd会在前面? |
|