modify solution 76

This commit is contained in:
YDZ
2021-03-15 12:14:14 +08:00
parent c30c6c7f41
commit 6cbaad13b1
12 changed files with 64 additions and 67 deletions

View File

@ -32,9 +32,7 @@ func minWindow(s string, t string) string {
}
}
if finalLeft != -1 {
for i := finalLeft; i < finalRight+1; i++ {
result += string(s[i])
}
result = string(s[finalLeft : finalRight+1])
}
return result
}