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-клієнта