Wang-Jun-Chao / coding-interviews

剑指Offer
741 stars 348 forks source link

Test11代码错误 #7

Open HardyChina opened 5 years ago

HardyChina commented 5 years ago

// 递归求一半的值 double result = powerWithUnsignedExponent(base, exponent >> 2); 这里应该是右移一位,改为 double result = powerWithUnsignedExponent(base, exponent >> 1);