What assumption keeps the classic rotated search simple?
Practice this question from Search in Rotated Sorted Array - Rotated search Pattern Practice Quiz, with options and an explanation.
Question
What assumption keeps the classic rotated search simple?
Option A — Correct answer
Distinct values
Option B
All values are negative
Option C
The array has odd length
Option D
The target is positive
Explanation
The classic problem assumes distinct values.