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