Jump to content

Longest common substring: Difference between revisions

m
Line 988:
 
<lang PowerShell>function lcs([String]$xs,[String]$ys) {
if ($xs.Length -lt $ys.Length) {$ys,$xs = $xs,$ys}
if ([String]::IsNullOrEmpty($xs) -or [String]::IsNullOrEmpty($ys)) {
return ""
}
$is = $xs.ToCharArray()
$js = $ys.ToCharArray()
678

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.