Back to Dashboard

Pro pattern

Upgrade to Pro to access this pattern and all 22 patterns.

Upgrade
PATTERN

Graph Shortest Path

Find shortest paths in weighted and unweighted graphs using Dijkstra's algorithm, Bellman-Ford, and modified variants. Master priority-queue-driven exploration, negative edge handling, and constrained shortest path problems like "cheapest flights within K stops."

Learn Graph Shortest PathExplanation, templates & reference

Network Delay Time

medium

Cheapest Flights Within K Stops

medium

Swim in Rising Water

hard