Binary Search

Problems on binary search, including finding a value or its first and last position in a sorted array, binary search on the answer, cutting and distributing resources into equal parts, finding roots of monotone functions and searching on real numbers.

The binary search article in the Basics section explains the technique. Related problem sets are under Ternary search, Sorting and Two pointers.

Problemas

Street Racing#166

Media (≈1350)

Wolves#238

Fácil (≈1000)

Genetic Engineering#259

Muy fácil (≈850)

ACM#312

Fácil (≈1000)

Binomial coefficients 3#320

Difícil (≈1650)

Rocket#356

Fácil (≈1000)

Maze Stretching#372

Muy fácil (≈850)

Close numbers#457

Media (≈1350)

Guess the Number#511

Muy fácil (≈850)

Fun game#597

Muy fácil (≈850)

Turtle#669

Media (≈1350)

External Rectangles#710

Muy fácil (≈850)

Figure skating#744

Fácil (≈1000)

Preparation#775

Muy fácil (≈850)

Power#834

Muy fácil (≈850)

Cables#872

Fácil (≈1000)

Garland#876

Muy fácil (≈850)

Owl's Problem#1051

Muy fácil (≈850)

Game#1167

Fácil (≈1000)

Boxes#1183

Muy fácil (≈850)

1-25 de 470