Skip to content

Commit 78f639f

Browse files
07subhadipidoocs
authored andcommitted
style: format code and docs with prettier
1 parent bc23fa6 commit 78f639f

File tree

1 file changed

+2
-2
lines changed
  • solution/3400-3499/3430.Maximum and Minimum Sums of at Most Size K Subarrays

1 file changed

+2
-2
lines changed

solution/3400-3499/3430.Maximum and Minimum Sums of at Most Size K Subarrays/Solution.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
* @param {number} k
44
* @return {number}
55
*/
6-
var minMaxSubarraySum = function(nums, k) {
6+
var minMaxSubarraySum = function (nums, k) {
77
const computeSum = (nums, k, isMin) => {
88
const n = nums.length;
99
const prev = new Array(n).fill(-1);
1010
const next = new Array(n).fill(n);
1111
let stack = [];
12-
12+
1313
if (isMin) {
1414
for (let i = 0; i < n; i++) {
1515
while (stack.length > 0 && nums[stack[stack.length - 1]] >= nums[i]) {

0 commit comments

Comments
 (0)