Longest common subsequence: Difference between revisions
m
changed l/r to match scs task (same output)
Thundergnat (talk | contribs) |
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]
r = lcs(a
res = iff(length(l)>length(r)?l:r)
end if
|