Which edge case should still work?
Practice this question from Move Zeroes - Two pointers Pattern Practice Quiz, with options and an explanation.
Question
Which edge case should still work?
Option A
Only arrays with negative numbers
Option B — Correct answer
All zeroes or no zeroes
Option C
Only arrays of length exactly 5
Option D
Only already sorted arrays
Explanation
Arrays with all zeroes or no zeroes should remain valid.