This repository has been archived on 2022-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
usaco-guide/content/2_Silver/4_Silver_BinSearch.md
2020-06-05 19:04:47 -04:00

1.3 KiB

slug title author order prerequisites
/silver/binary-search Binary Search Nathan Chen 4
Silver - Sorting

Binary search can be used on monotonic functions for a logarithmic runtime.

The Basic Application

Find an element in a sorted array in O(log N) time.

Tutorial

Problems

Binary Searching on the Answer

Oftentimes used when you need to find the "minimum" or "maximum" of some quantity that satisfies a property.

Tutorial

Problems