Open glenprivacy opened 5 years ago
mid = (lower + (higher - lower)) / 2; is not working mid will just turn out to be higher / 2 in every loop
Or it should be lower + (higher - lower) / 2 as it seems like the previous editor wanted to avoid overflow for large value calculation
mid = (lower + (higher - lower)) / 2; is not working mid will just turn out to be higher / 2 in every loop