mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 01:15:57 +08:00
modify solution 76
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user