My code fails the following test:
Input: -1.00000, -2147483648
Why is this the wrong output?
Thanks for answering (-1)^2=1, I realized that after I posted the question...
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.