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