Skip to content

Commit 22ac9ba

Browse files
committed
Runtime: 308 ms (Top 14.36%) | Memory: 51.8 MB (Top 95.39%)
1 parent 6abbe20 commit 22ac9ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/S/Shuffle an Array/Shuffle an Array.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 308 ms (Top 14.36%) | Memory: 51.8 MB (Top 95.39%)
12

23
var Solution = function(nums) {
34
this.nums = nums;
@@ -9,7 +10,7 @@ Solution.prototype.reset = function() {
910
};
1011

1112
Solution.prototype.shuffle = function() {
12-
13+
1314
const n = this.nums.length;
1415
const numsArray = this.nums;
1516

@@ -19,6 +20,6 @@ Solution.prototype.shuffle = function() {
1920
numsArray[i] = numsArray[j];
2021
numsArray[j] = tmp;
2122
}
22-
23+
2324
return numsArray;
2425
};

0 commit comments

Comments
 (0)