Which edge case matters for this problem?
Practice this question from Shortest Path in Unweighted Graph - BFS Distance Pattern Practice Quiz, with options and an explanation.
Question
Which edge case matters for this problem?
Option A — Correct answer
If source equals destination, the answer is 0.
Option B
Negative stock prices
Option C
Uppercase vowels only
Option D
A rotated sorted array
Explanation
If source equals destination, the answer is 0.