3.13. The Final Answer

And so the entire function is O(log n) where n is the initial value of last-first. [1]



[1] I emphasize the initial values of those variables because the values change as the function executes.


In the Forum:

(no threads at this time)