Skip to content
HTQHow To Quant
← Problem Bank

Search Algorithm

ConceptMedium~15 min· Algorithms
Problem

Given a sorted array of distinct integers and a target , find the index of (or report absence) in time.

Then discuss what you would change if the array were:

A. Unsorted.

B. Sorted but with millions of lookups against the same array.