Groups
Category
Think Backwards is a problemโsolving pattern where you reverse time or direction so hard deletions become easy insertions and the final state becomes the starting point.
Dijkstra's algorithm finds shortest path distances from one source to all vertices when all edge weights are non-negative.