Ad
  • Default User Avatar

    Overflow error.

  • Default User Avatar

    Are the Java test cases really OK? I get the following error:

    hamming(1692) should be 2147483648 expected:<-2147483648> but was:<2147483648>

    Mathematically speaking, the product of three positive numbers cannot be negative so 2147483648 should be correct and not -2147483648, right? Could anyone check the test cases?