Comment on Java Puzzle: Square RootComments−uvdiv13yForce a race condition on the variable `root'. if (n.divide(root).equals(root)) { Try to set it to 2^20001 on the first funcall and 0 on the second.−mtpettyp13yBigInteger is immutable so this won't work−uvdiv13yYou're right! Good catch.
Comments
Force a race condition on the variable `root'.
Try to set it to 2^20001 on the first funcall and 0 on the second.BigInteger is immutable so this won't work
You're right! Good catch.