Qurak

LongestCommonSequencePositions

उपलब्ध

Returns the {start end} spans in each argument covering the longest noncontiguous common sequence of two strings or lists

LongestCommonSequencePositions[s1, s2]
LongestCommonSequencePositions["ABBC", "CABAB"] → {{{1, 3}}, {{2, 3}, {5, 5}}}LongestCommonSequencePositions[{"A", "B", "B", "C"}, {"C", "A", "B", "A", "B"}] → {{{1, 3}}, {{2, 3}, {5, 5}}}LongestCommonSequencePositions["This is an example string", "This is another string"] → {{{1, 10}, {12, 12}, {19, 25}}, {{1, 10}, {14, 14}, {16, 22}}}

विषय

संबंधित

सभी 6300 फ़ंक्शन · इसे किसी MCP क्लाइंट से उपयोग करें