mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-07 18:10:29 +08:00
Update solution 0859
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
# [859. Buddy Strings](https://leetcode-cn.com/problems/buddy-strings/)
|
# [859. Buddy Strings](https://leetcode.com/problems/buddy-strings/)
|
||||||
|
|
||||||
## 题目
|
## 题目
|
||||||
|
|
||||||
@ -53,6 +53,7 @@ For example, swapping at indices 0 and 2 in "abcd" results in "cbad".
|
|||||||
## 代码
|
## 代码
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
||||||
package leetcode
|
package leetcode
|
||||||
|
|
||||||
func buddyStrings(s string, goal string) bool {
|
func buddyStrings(s string, goal string) bool {
|
||||||
|
Reference in New Issue
Block a user