Jump to content

Longest common substring: Difference between revisions

m
m (→‎{{header|REXX}}: changed whitespace.)
Line 1,295:
<lang Maple>StringTools:-LongestCommonSubString("thisisatest","testing123testing");</lang>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
The function <code>LongestCommonSubsequence</code> returns the longest common substring, and <code>LongestCommonSequence</code> returns the longest common subsequence.
<lang Mathematica>Print[LongestCommonSubsequence["thisisatest", "testing123testing"]];</lang>
1,111

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.