Is there an algorithm to decide if a * b fits within the possible values of an integer? (without casting to long)
Is there an algorithm to decide if a * b fits within the possible values of an integer? (without casting to a wider type)