Fetching algorithms...
Fetching algorithms...
Watch key transitions, pointers, and variables update step-by-step.
Read clean, documented implementations across multiple patterns.
Sketch diagrams on an infinite canvas and draft notes directly inline.
n = 4, edges = [[0, 1, 3], [0, 2, 8], [1, 2, 2], [1, 3, 5], [2, 3, 1]][[0, 3, 5, 8], [Infinity, 0, 2, 5], [Infinity, Infinity, 0, 1], [Infinity, Infinity, Infinity, 0]]n = 3, edges = [[0, 1, 5], [1, 2, -3], [2, 0, 2]][[-1, 4, 1], [-1, 2, -3], [-1, 4, 1]]Time Complexity
Space Complexity