mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-07 01:44:56 +08:00
Update solution 384
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
# [384.Shuffle an Array](https://leetcode-cn.com/problems/shuffle-an-array/)
|
# [384.Shuffle an Array](https://leetcode.com/problems/shuffle-an-array/)
|
||||||
|
|
||||||
## 题目
|
## 题目
|
||||||
|
|
||||||
@ -45,11 +45,12 @@ Implement the Solution class:
|
|||||||
|
|
||||||
## 解题思路
|
## 解题思路
|
||||||
|
|
||||||
- 使用rand.Shuffle进行数组随机打乱
|
- 使用 rand.Shuffle 进行数组随机打乱
|
||||||
|
|
||||||
## 代码
|
## 代码
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
||||||
package leetcode
|
package leetcode
|
||||||
|
|
||||||
import "math/rand"
|
import "math/rand"
|
||||||
|
Reference in New Issue
Block a user