摘要: 给你一个整数数组 nums ,设计算法来打乱一个没有重复元素的数组。 实现 Solution class: Solution(int[] nums) 使用整数数组 nums 初始化对象 int[] reset() 重设数组到它的初始状态并返回 int[] shuffle() 返回数组随机打乱后的结果 阅读全文
posted @ 2021-11-22 23:36 博客是个啥? 阅读(30) 评论(0) 推荐(0) 编辑