Skip to content

Commit 31d5196

Browse files
update reverse_bits.py
1 parent 51dbbdc commit 31d5196

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: bit_manipulation/reverse_bits.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def get_reverse_bit_string(num_reversed : int) -> str:
22
"""
3-
return the bit string of an interger
3+
return the bit string of an integer
44
result of a reverse_bit and operation on the integer provided.
55
66
>>> get_reverse_bit_string(2550136832)
@@ -70,7 +70,7 @@ def reverse_bit(number: int) -> str:
7070
ans = ans << 1
7171
# get the end bit
7272
end_bit = number % 2
73-
# right shif the bits by unity
73+
# right shift the bits by unity
7474
number = number >> 1
7575
# add that bit to our ans
7676
ans = ans | end_bit

0 commit comments

Comments
 (0)