What is the main signal for Binary Search on Answer?

Practice this question from Quiz: Binary Search on Answer, with options and an explanation.

Question

What is the main signal for Binary Search on Answer?

Option A — Correct answer

The answer is a number and if x works, then every larger or smaller value also works.

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: Binary Search on Answer

All questions · Next question

Open on QuizMaker