Longest common subsequence: Difference between revisions

m
changed l/r to match scs task (same output)
m (Undo revision 264428 by Patrica (talk) Not necessary to link to 3rd party sites that add no information, just pose the same task)
m (changed l/r to match scs task (same output))
Line 2,088:
res = lcs(a[1..-2],b[1..-2])&a[$]
else
sequence l = lcs(a,b[1..-2],b),
r = lcs(a,b[1..-2],b)
res = iff(length(l)>length(r)?l:r)
end if
7,822

edits