Open Sukhrobjon opened 4 years ago
I'll implement a new method for bounds, the <100 was kind of a joke not gonna lie...
What's missing from the bases tasks?
oh, sorry home_base.py is where my base functions are stored, they are imported into the test file.
43 in binary_search_iterative()
function.while count < 100:
instead use left and right bound if you checked all numbers. Also, you dont need to convert to int herehelta = int((right_bound + left_bound) / 2)
you can just use double divide//
operator, in python it returns integer number. so your code would behelta =((right_bound + left_bound) // 2)
.