| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/mJackie/leetcode/master/code/lc50.java | [Back] [Original] |
package code;
/*
* 50. Pow(x, n)
*
* Medium
* Math, Binary Search
* lc29
* Tips
*/
public class lc50 {
public double myPow(double x, int n) {
if(n == 0) return 1;
if(n==Integer.MIN_VALUE && x!=1 && x!=-1) return 0; //
if(n
| Web Proxy Viewer | New URL | Original Page |