What is a common mistake in Dijkstra and Shortest Path?

Practice this question from Quiz: Dijkstra and Shortest Path, with options and an explanation.

Question

What is a common mistake in Dijkstra and Shortest Path?

Option A — Correct answer

Memorizing code without naming the invariant

Option B

Writing a small dry run

Option C

Naming the pattern

Option D

Testing a boundary case

Explanation

This is the most likely implementation risk for this chapter.

Quiz: Dijkstra and Shortest Path

All questions · Previous question

Open on QuizMaker