Skip to content

Commit 1621d87

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5199e18 commit 1621d87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maths/power_of_two.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Space Complexity: O(1)
66
"""
77

8+
89
def is_power_of_two(n: int) -> bool:
910
"""Return True if n is a power of two (n > 0).
1011
@@ -26,4 +27,5 @@ def is_power_of_two(n: int) -> bool:
2627

2728
if __name__ == "__main__":
2829
import doctest
30+
2931
doctest.testmod()

0 commit comments

Comments
 (0)