Calculate the maximum number of comparisons binary search needs for N elements.
Join thousands of creators making smart, shareable calculators in seconds.