Searching
Algorithms that find an item, or a value with a property, in a collection.
Problems
- Search in a sorted array
Given a sorted array and a key, find an index of the key, or report that the key is not in the array.
intro
Algorithms
- Binary search
Find a key in a sorted array. Compare the key with the middle item, and keep only the half that can hold the key.
10 languagesvisualintro