We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c349e00 commit 4c3700aCopy full SHA for 4c3700a
2699-modify-graph-edge-weights.js
@@ -74,7 +74,7 @@ class PQ {
74
* @return {number[][]}
75
*/
76
const modifiedGraphEdges = function (n, edges, source, destination, target) {
77
- const kMax = Number.MAX_SAFE_INTEGER
+ const kMax = 1e9
78
const graph = Array(n)
79
.fill(null)
80
.map(() => [])
0 commit comments