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 క్లయింట్ నుండి వాడండి