What is the main signal for Rotated Search and Boundary Binary Search?

Practice this question from Quiz: Rotated Search and Boundary Binary Search, with options and an explanation.

Question

What is the main signal for Rotated Search and Boundary Binary Search?

Option A — Correct answer

The input is sorted, almost sorted, rotated, infinite, or asks for first/last valid position.

Option B

The input has no constraints.

Option C

The sample output is small.

Option D

The question uses only one variable.

Explanation

Pattern choice starts from constraints and invariant.

Quiz: Rotated Search and Boundary Binary Search

All questions · Next question

Open on QuizMaker