We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da70c71 commit d185bd7Copy full SHA for d185bd7
src/main/java/com/fishercoder/solutions/_384.java
@@ -1,23 +1,5 @@
1
package com.fishercoder.solutions;
2
-/**
3
- * 384. Shuffle an Array
4
-Shuffle a set of numbers without duplicates.
5
6
-Example:
7
-
8
-// Init an array with set 1, 2, and 3.
9
-int[] nums = {1,2,3};
10
-Solution solution = new Solution(nums);
11
12
-// Shuffle the array [1,2,3] and return its result.
13
- Any permutation of [1,2,3] must equally likely to be returned.
14
-solution.shuffle();
15
16
-// Resets the array back to its original configuration [1,2,3].
17
-solution.reset();
18
19
-// Returns the random shuffling of array [1,2,3].
20
-solution.shuffle();*/
21
import java.util.ArrayList;
22
import java.util.LinkedList;
23
import java.util.List;
0 commit comments