Which edge case matters for this problem?
Practice this question from Sort Colors - Dutch National Flag Pattern Practice Quiz, with options and an explanation.
Question
Which edge case matters for this problem?
Option A — Correct answer
Do not increment mid after swapping with high.
Option B
Whether the graph has a cycle
Option C
Whether the string has vowels
Option D
Whether a linked list has a dummy node
Explanation
Do not increment mid after swapping with high.