CodingInterviewChinese2 icon indicating copy to clipboard operation
CodingInterviewChinese2 copied to clipboard

面试题16 解法3错误

Open auniquesun opened this issue 5 years ago • 1 comments

第三种解法,作者声称的即全面又高效的解法,PowerWithUnsignedExponent(double base, unsigned int exponent),当 exponent < 0时,答案错误

auniquesun avatar Mar 10 '19 08:03 auniquesun

第三种解法是第二种解法的改进,只是替换了第二种解法里的一个函数。exponent小于0的情况,第二种解法已经考虑过了。

Zkjoker avatar Mar 16 '19 10:03 Zkjoker