Skip to content

Commit 7f48c3f

Browse files
committed
Runtime: 185 ms (Top 5.06%) | Memory: 67.7 MB (Top 5.06%)
1 parent a22cfdb commit 7f48c3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 185 ms (Top 5.06%) | Memory: 67.7 MB (Top 5.06%)
12
var maxProduct = function(nums) {
23
let val = [];
34
for(let i=0; i<nums.length; i++){
@@ -6,4 +7,4 @@ var maxProduct = function(nums) {
67
}
78
}
89
return Math.max(...val)
9-
};
10+
};

0 commit comments

Comments
 (0)