Longest common substring: Difference between revisions

Content added Content deleted
Line 1,001: Line 1,001:
$continue = ($i -lt $is.Length) -and ($j -lt $js.Length)
$continue = ($i -lt $is.Length) -and ($j -lt $js.Length)
}
}
$size = 0
$p, $size = $i, 0
while ($continue) {
while ($continue) {
if ($is.Chars($i) -ne $js.Chars($j)) {break}
if ($is.Chars($i) -ne $js.Chars($j)) {break}