Search⌘ K
AI Features

Path with Maximum Probability

Path with Maximum Probability asks you to navigate an undirected weighted graph from a start node to an end node, returning the highest possible success probability, or zero when no path exists.

Statement

You are given an undirected weighted graph of n nodes, represented by a 0-indexed list, edges, where edges[i] = [a, b] ...