题目
LeetCode 384.打乱数组
解释
## 题目描述 给你一个整数数组 nums ,设计算法来打乱一个没有重复元素的数组。打乱后,数组的所有排列应该是 等可能 的。 实现 Solution class: Solution(int[] nums) 使用整数数组 nums 初始化对象 int[] reset() 重设数组到它的初始状态并返回 int[] shuffle() 返回数组随机打乱后的结果 ## 示例 **示例 1:** ## 约束条件 1 <= nums.length <= 50 -106 <= nums[i] <= 106 nums 中的所有元素都是 唯一的 最多可以调用 104 次 reset 和 shuffle ## LeetCode 链接 https://leetcode.cn/problems/shuffle-an-array/
答案
正在疯狂整理答案中......