2 Comments

I don't see why b = len(heights) - 1 rather than b =len(heights) . Doesn't that end up skipping the last element of heights given the strict inequality in the while-loop? Doesn't affect the quality of the benchmarking, to be sure.

Expand full comment

Yes, it should be len(heights). But it wouldn't make any difference in the final numbers.

Expand full comment