• + 0 comments

    Java 8 solution

    return  BigInteger.valueOf(n).multiply(BigInteger.valueOf(m)).longValue()-1;