Skip to content

Commit aa6b1bf

Browse files
committed
Runtime: 755 ms (Top 91.19%) | Memory: 25.4 MB (Top 98.78%)
1 parent 055ff25 commit aa6b1bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/algorithms/P/Path with Maximum Probability/Path with Maximum Probability.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 755 ms (Top 91.19%) | Memory: 25.4 MB (Top 98.78%)
12
class Solution(object):
23
def maxProbability(self, n, edges, succProb, start, end):
34
adj=[[] for i in range(n)]
@@ -19,4 +20,4 @@ def maxProbability(self, n, edges, succProb, start, end):
1920
if(sys.maxsize==dist[end]):
2021
return 0.00000
2122
else:
22-
return -dist[end]
23+
return -dist[end]

0 commit comments

Comments
 (0)