Which edge case matters for this problem?
Practice this question from Flood Fill - Boundary DFS Pattern Practice Quiz, with options and an explanation.
Question
Which edge case matters for this problem?
Option A — Correct answer
If old color equals new color, return immediately.
Option B
Negative stock prices
Option C
Uppercase vowels only
Option D
A rotated sorted array
Explanation
If old color equals new color, return immediately.