|
SOLUTIONS
|
MATHEMATICA 内置符号
LongestCommonSequence
LongestCommonSequence[s1, s2]
求出字符串之间或列表
和
之间共同的最长的连续序列或不相交的元素.
更多信息更多信息
- LongestCommonSequence 返回有不相交串级联的最长共同序列.
- 如果有相同长度的几个共同子序列,LongestCommonSequence 返回
中最早开始的一个. - 对于字符串,设置选项 IgnoreCase->True,使得 LongestCommonSequence 忽略大小写,并返回出现在
中共同序列的形式.
版本 7 的新功能
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
