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