Skip to main content
added 115 characters in body
Source Link
anderstood
  • 14.5k
  • 2
  • 32
  • 82

As porposed by @V.E. you should use LongestCommonSubsequence[s1,s2]. Example from the documentation:

LongestCommonSubsequence[ "AAABBBBCCCCC", "CCCBBBAAABABA"]
(* AAAB *)

As porposed by @V.E. you should use LongestCommonSubsequence[s1,s2]

As porposed by @V.E. you should use LongestCommonSubsequence[s1,s2]. Example from the documentation:

LongestCommonSubsequence[ "AAABBBBCCCCC", "CCCBBBAAABABA"]
(* AAAB *)
Source Link
Ulrich Neumann
  • 56.8k
  • 2
  • 26
  • 60

As porposed by @V.E. you should use LongestCommonSubsequence[s1,s2]