Commits

sammyrulez  committed ca0c633

removed useless code

  • Participants
  • Parent commits 6622b3f

Comments (0)

Files changed (1)

File two/chopper.py

             return mid_index
         else:
             half_mid_index = int( math.ceil(float(mid_index) / 2))
-            if half_mid_index == 0:
-                return check_index_value(0, value_to_find, values)
-            elif value_to_find > values[mid_index-1] and value_to_find < values[mid_index]:
+            if value_to_find > values[mid_index-1] and value_to_find < values[mid_index]:
                 return -1
             elif value_to_find > values[mid_index]:
                mid_index = mid_index + half_mid_index