Shortest common supersequence: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 955: | Line 955: | ||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
{{trans|Kotlin}} |
{{trans|Kotlin}} |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var lcs // recursive |
||
lcs = Fn.new { |x, y| |
lcs = Fn.new { |x, y| |
||
if (x.count == 0 || y.count == 0) return "" |
if (x.count == 0 || y.count == 0) return "" |