Qurak

LongestCommonSubsequencePositions

در دسترس

Returns the {start end} spans of the longest contiguous common subsequence in two strings or lists

LongestCommonSubsequencePositions[s1, s2]
LongestCommonSubsequencePositions["AABCC", "CBAABA"] → {{1, 3}, {3, 5}}LongestCommonSubsequencePositions[{"A", "A", "B", "C", "C"}, {"C", "B", "A", "A", "B", "A"}] → {{1, 3}, {3, 5}}LongestCommonSubsequencePositions["This is an example string", "And this is another string"] → {{2, 10}, {6, 14}}

موضوع‌ها

مرتبط

همهٔ 6300 تابع · استفاده از این در کلاینت MCP