Whole cube root
Write cube_root_floor(n) that returns the largest whole number whose cube is at most
n, for n zero or more.
cube_root_floor(27) -> 3
cube_root_floor(30) -> 3
cube_root_floor(0) -> 0
cube_root_floor(10 ** 18) -> 1000000
The point is to practise binary search on an answer. Floating-point n ** (1/3) is off
by one for large n, so search over whole numbers.
def cube_root_floor(n):
...