Longest common substring: Difference between revisions

m
(add Refal)
(2 intermediate revisions by 2 users not shown)
Line 1,097:
=={{header|EasyLang}}==
 
<syntaxhighlight lang=easylang>
func$ lcs a$ b$ .
if a$ = "" or b$ = ""
Line 1,114:
.
.
b$ = substr b$ 2 -19999
.
return max$
Line 1,621:
=={{header|langur}}==
{{trans|Julia}}
<syntaxhighlight lang="langur">val .lcs = ffn(.s1, .s2) {
var .l, .r, .sublen = 1, 0, 0
for .i of .s1 {
Line 1,849:
S1: string = 'thisisatest' ;
 
S2: string = 'testing123isatestingtesting123testing' ;
 
 
990

edits