Lessons
C++ · Graphs · 50. Shortest Path with Weights
step 1 of 6
Roads have lengths
Real roads are long or short. So each road in my list carries two numbers: where it goes, and what it costs.
Mission
Add a road from 0 to 3 that costs 5, then RUN.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
← press me!
Press RUN to see what this program does.