Binary Search

2 problems using this pattern

About this pattern:

Divide and conquer on sorted data to achieve O(log n) search complexity.

Often used with: Two Pointers

Complexity Range

Time Complexity

O(log n) (2 problems)

Space Complexity

O(1) (2 problems)

Problems Using Binary Search

← Back to All Patterns