method
Shortest Path — animated LeetCode walkthroughs
LeetCode problems solved with Shortest Path. Browse the complete tag, then watch the algorithm move — step-by-step animation, Python and Go.
43 problems · 35 animated · 8 locked
Full Shortest path index
- 399Evaluate DivisionWatch
- 499The Maze IIILocked
- 505The Maze IILocked
- 743Network Delay TimeWatch
- 787Cheapest Flights Within K StopsWatch
- 882Reachable Nodes In Subdivided GraphWatch
- 1334Find the City With the Smallest Number of Neighbors at a Threshold DistanceWatch
- 1368Minimum Cost to Make at Least One Valid Path in a GridWatch
- 1514Path with Maximum ProbabilityWatch
- 1786Number of Restricted Paths From First to Last NodeWatch
- 1810Minimum Path Cost in a Hidden GridLocked
- 1976Number of Ways to Arrive at DestinationWatch
- 2045Second Minimum Time to Reach DestinationWatch
- 2093Minimum Cost to Reach City With DiscountsLocked
- 2203Minimum Weighted Subgraph With the Required PathsWatch
- 2290Minimum Obstacle Removal to Reach CornerWatch
- 2297Jump Game VIIILocked
- 2473Minimum Cost to Buy ApplesLocked
- 2577Minimum Time to Visit a Cell In a GridWatch
- 2642Design Graph With Shortest Path CalculatorWatch
- 2662Minimum Cost of a Path With Special RoadsWatch
- 2699Modify Graph Edge WeightsWatch
- 2714Find Shortest Path with K HopsLocked
- 2737Find the Closest Marked NodeLocked
- 2959Number of Possible Sets of Closing BranchesWatch
- 2976Minimum Cost to Convert String IWatch
- 2977Minimum Cost to Convert String IIWatch
- 3112Minimum Time to Visit Disappearing NodesWatch
- 3123Find Edges in Shortest PathsWatch
- 3286Find a Safe Walk Through a GridWatch
- 3341Find Minimum Time to Reach Last Room IWatch
- 3342Find Minimum Time to Reach Last Room IIWatch
- 3377Digit Operations to Make Two Integers EqualWatch
- 3419Minimize the Maximum Edge Weight of GraphWatch
- 3594Minimum Time to Transport All IndividualsWatch
- 3604Minimum Time to Reach Destination in Directed GraphWatch
- 3620Network Recovery PathwaysWatch
- 3650Minimum Cost Path with Edge ReversalsWatch
- 3928Minimum Cost to Buy Apples IIWatch
- 3970Shortest Path With At Most K Consecutive Identical CharactersWatch
- 3977Minimum Time to Reach Target With Limited PowerWatch
- 4003Minimum Cost Path with Alternating Directions IIIWatch
- 4046Minimum Cost Path With At Most K TurnsWatch