Skip to content

Commit 4c8e3fd

Browse files
authored
6: 00000110 --> 9: 0000100
1 parent f7c1147 commit 4c8e3fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bit_manipulation/swap_all_odd_and_even_bits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def swap_odd_even_bits(num: int) -> int:
3030
10: 00001010
3131
>>> print(show_bits(6, swap_odd_even_bits(6)))
3232
6: 00000110
33-
5: 00000101
33+
9: 00001001
3434
>>> print(show_bits(23, swap_odd_even_bits(23)))
3535
23: 00010111
3636
43: 00101011

0 commit comments

Comments
 (0)