Dijkstra's Shortest Path

medium
Unit 8 · Graphs I0/2 to milestone

Given a weighted directed graph as an adjacency dict, find the cheapest path between two nodes.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Dijkstra's Shortest Path · TechGradify