in reply to Re^3: Longest common substring with N mismatches
in thread Longest common substring with N mismatches
Just change what you put into @solutions. Replace
$i-$l+1
with
# Start of match in first string # End of match in first string [ $i-$l+1, $i+1 ]
or
# Start of match in first string # End of match in first string # Start of match in second string # End of match in second string [ $i-$l+1, $i+1, $j-$l+1, $j+1 ]
or
# Start of match in first string # Start of match in second string # Length of match [ $i-$l+1, $j-$l+1, $l ]
and remove
map { substr($s, $_, $best_l) }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Longest common substring with N mismatches
by leo1982 (Initiate) on Sep 13, 2017 at 08:47 UTC | |
by ikegami (Patriarch) on Sep 14, 2017 at 00:13 UTC |