【发布时间】:2015-04-07 03:18:23
【问题描述】:
s1="aaaaa"
s2="aa"
#expected output=3, because there is a "aa" in "aaaaa", at the 3rd position of s2
如何找到字符匹配的最后位置?
【问题讨论】:
-
上述示例的预期输出是什么?
-
你想要什么结果?
-
您的问题应该是“查找 s1 中与 s2 中所有字符匹配的所有字符的索引”
-
哇,这个问题一直在发生巨大变化。