Calculate the maximum number of comparisons binary search needs for N elements.
Remix "Binary Search Depth" into your own editable copy — tweak it, share it, make it yours.