Skip to content

Commit 0b6acae

Browse files
authored
Update 1857-largest-color-value-in-a-directed-graph.js
1 parent 33ffa9a commit 0b6acae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1857-largest-color-value-in-a-directed-graph.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const largestPathValue = function (colors, edges) {
2626
while (q.length) {
2727
const u = q[0]
2828
q.shift()
29-
let val = Math.max(...cnt[u])
29+
const val = Math.max(...cnt[u])
3030
res = Math.max(res, val)
3131
seen++
3232
if (graph[u] == null) continue

0 commit comments

Comments
 (0)