Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test11代码错误 #7

Open
HardyChina opened this issue Jul 11, 2019 · 0 comments
Open

Test11代码错误 #7

HardyChina opened this issue Jul 11, 2019 · 0 comments

Comments

@HardyChina
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant