My Solution to Pow


  • 0
    C

    double mypow(double x ,int n)
    {
    double result = 1;
    if ( n !=0 && n )
    {
    result = xmypow(x,n\2);
    }
    return result ;
    }


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.