We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51dbbdc commit 31d5196Copy full SHA for 31d5196
bit_manipulation/reverse_bits.py
@@ -1,6 +1,6 @@
1
def get_reverse_bit_string(num_reversed : int) -> str:
2
"""
3
- return the bit string of an interger
+ return the bit string of an integer
4
result of a reverse_bit and operation on the integer provided.
5
6
>>> get_reverse_bit_string(2550136832)
@@ -70,7 +70,7 @@ def reverse_bit(number: int) -> str:
70
ans = ans << 1
71
# get the end bit
72
end_bit = number % 2
73
- # right shif the bits by unity
+ # right shift the bits by unity
74
number = number >> 1
75
# add that bit to our ans
76
ans = ans | end_bit
0 commit comments