low is odd using the bitwise AND operator (low & 1). If it is not odd, increment low by 1.low and high using the formula (high - low) / 2 + 1.low was incremented and became greater than high, return 0, as there are no odd numbers in the range.