Exponential search

medium

Built for unbounded or unknown-length input - an infinite stream, or an API you can only probe by index. Costs O(log i) where i is where the target actually is.

Best O(1)Average O(log i)Worst O(log n)Space O(1)
Loading the exponential search engine…

Where to go next