Practice free →
Home › Per Red Blob Games, DIJKSTRA's algorithm extends…

Per Red Blob Games, DIJKSTRA's algorithm extends BFS to handle which kind of graph?

ABidirectional graphs of nodes only
BSparse adjacency-list graphs only
CDirected acyclic graphs of nodes only
DWeighted graphs with non-negative costs
Answer & Solution
Correct answer: D. Weighted graphs with non-negative costs
Red Blob Games Dijkstra: like BFS but with a priority queue sorted by cumulative cost g. Requires non-negative weights.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions