Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27bed34

Browse files
authored
Merge pull request neetcode-gh#1174 from palashsharma891/patch-1
Update 743-Network-Delay-Time.py
2 parents 32565c0 + ea19c56 commit 27bed34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/743-Network-Delay-Time.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:
1212
if n1 in visit:
1313
continue
1414
visit.add(n1)
15-
t = max(t, w1)
15+
t = w1
1616

1717
for n2, w2 in edges[n1]:
1818
if n2 not in visit:

0 commit comments

Comments
 (0)