Skip to content

Commit 4c3700a

Browse files
authored
Update 2699-modify-graph-edge-weights.js
1 parent c349e00 commit 4c3700a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2699-modify-graph-edge-weights.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class PQ {
7474
* @return {number[][]}
7575
*/
7676
const modifiedGraphEdges = function (n, edges, source, destination, target) {
77-
const kMax = Number.MAX_SAFE_INTEGER
77+
const kMax = 1e9
7878
const graph = Array(n)
7979
.fill(null)
8080
.map(() => [])

0 commit comments

Comments
 (0)