minor optimization to traceback

This commit is contained in:
2024-11-05 19:24:07 +00:00
parent 3da3ddf10c
commit ba978f425c
2 changed files with 12 additions and 10 deletions

View File

@@ -62,10 +62,6 @@ func Reverse(s string) string {
return string(buf)
}
func Splice(s string, c rune, idx int) string {
return s[:idx] + string(c) + s[idx:]
}
func NextLoHi(M WavefrontComponent, I WavefrontComponent, D WavefrontComponent, score int, penalties Penalty) (int, int) {
x := penalties.X
o := penalties.O