Skip to content

Commit 811e63e

Browse files
committed
Runtime: 127 ms (Top 64.29%) | Memory: 49.7 MB (Top 100.00%)
1 parent a99a72d commit 811e63e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/algorithms/G/Get the Maximum Score/Get the Maximum Score.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Runtime: 127 ms (Top 64.29%) | Memory: 49.7 MB (Top 100.00%)
2+
13
/**
24
* @param {number[]} nums1
35
* @param {number[]} nums2
@@ -22,7 +24,7 @@ var maxSum = function(nums1, nums2) {
2224
ptr2 += 1;
2325
continue;
2426
}
25-
27+
2628
if(ptr1 == n1 || (ptr2 != n2 && nums1[ptr1] > nums2[ptr2])){
2729
section_sum2 += nums2[ptr2];
2830
ptr2 += 1;
@@ -33,4 +35,4 @@ var maxSum = function(nums1, nums2) {
3335
}
3436
result += Math.max(section_sum1, section_sum2);
3537
return result % MODULO_AMOUNT;
36-
};
38+
};

0 commit comments

Comments
 (0)