Skip to content

Commit e4e486b

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bit_manipulation/is_K_power_of_N.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def is_k_power_of_n(n: int, k: int) -> bool:
3636

3737
if n <= 0 or k <= 0:
3838
raise ValueError("Both n and k must be positive integers")
39-
39+
4040
if n == 1:
4141
return k == 1
42-
42+
4343
while k % n == 0:
4444
k //= n
4545
return k == 1

0 commit comments

Comments
 (0)