Skip to content

Power of 4 #9505

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

Merged
merged 13 commits into from
Oct 8, 2023
2 changes: 1 addition & 1 deletion bit_manipulation/power_of_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def power_of_4(number: int) -> bool:
while number:
c += 1
number >>= 1
return c%2==1
return c % 2 == 1
else:
return False

Expand Down