Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
binary search solution in Clear category for Super Root by bravebug
def super_root(number):
start = 0
end = 10
x = 0
while True:
now = (start + end) / 2
if number - 0.0001 <= now ** now <= number + 0.0001:
x = now
break
elif now ** now < number:
start = now
else:
end = now
return x
Sept. 8, 2021
Comments: