My answer is accepted with this if condition at the beginning

```
if ( n == INT_MIN){
if (x==1.0 || x== -1.0){
return 1.0;
}
else{
return 0.0;
}
}
```

which is incorrect. Please add a test case.

]]>My answer is accepted with this if condition at the beginning

```
if ( n == INT_MIN){
if (x==1.0 || x== -1.0){
return 1.0;
}
else{
return 0.0;
}
}
```

which is incorrect. Please add a test case.

]]>So perhaps the only workaround is to calculate pow(x, INT_MIN+1)/x, if the algorithm has utilized the Math.abs() function.

That could make some nasty corner cases.

]]>