@@ -0,0 +1,682 @@
+public class LeetCode0050 %7B%0A    public double myPow(double x, int n)%0A    %7B%0A        if (n == 0) %7B%0A            return 1;%0A        %7D%0A        double tmp = x, result = 1.0;%0A%0A        for (int y = n == Integer.MIN_VALUE ? Integer.MAX_VALUE : n %3C 0 ? -n : n; y != 0; y = y %3E%3E 1) %7B%0A            if ((y & 1) == 1) %7B%0A                result *= tmp;%0A            %7D%0A            tmp *= tmp;%0A        %7D%0A%0A        if (n == Integer.MIN_VALUE) %7B%0A            result *= result;%0A        %7D%0A        return n %3C 0 ? 1 / result : result;%0A    %7D%0A%0A    public static void main(String%5B%5D args)%0A    %7B%0A        LeetCode0050 leetcode = new LeetCode0050();%0A        System.out.println(leetcode.myPow(2, -2147483648));%0A    %7D%0A%7D%0A

Add LeetCode0050.java