Anonymous user
Longest common substring: Difference between revisions
→{{header|zkl}}: bug fix
(→{{header|Ruby}}: Added zkl) |
(→{{header|zkl}}: bug fix) |
||
Line 209:
<lang zkl>fcn lcd(a,b){
if(b.len()<a.len()){ t:=a; a=b; b=t; }
foreach n,m in ([a.len()..1,-1],a.len()-n+1){
s:=a[m,n];
if(
}
""
}</lang>
<lang zkl>lcd("testing123testing","thisisatest").println();</lang>
|