Graphs lessons
Node 22.08.0
Loading editor…
Test casesRun to compare output
Input
n = 4, flights = [[0,1,100],[1,2,100],[2,0,100],[1,3,600],[2,3,200]], src = 0, dst = 3, k = 1
Output
—
Expected
700
More practice
Same technique, different problems. Try them without the walkthrough.