Skip to content

Commit 80319f5

Browse files
committed
Runtime: 281 ms (Top 86.85%) | Memory: 57.9 MB (Top 59.15%)
1 parent 958dff7 commit 80319f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/algorithms/P/Path With Minimum Effort/Path With Minimum Effort.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Runtime: 281 ms (Top 86.85%) | Memory: 57.9 MB (Top 59.15%)
12
/**
23
* @param {number[][]} heights
34
* @return {number}
@@ -39,7 +40,7 @@ var minimumEffortPath = function(heights) {
3940
if (differences[newX][newY] > maxDiff) {
4041
differences[newX][newY] = maxDiff;
4142
pq.push([newX, newY], maxDiff);
42-
}
43+
}
4344
}
4445
});
4546
}
@@ -107,4 +108,4 @@ PriorityQueue.prototype.shift = function shift() {
107108
index = smallerIndex;
108109
}
109110
return minNode;
110-
};
111+
};

0 commit comments

Comments
 (0)