Back to course home
0% completed
Vote For New Content
Another way to calculate "all_bits_set"
Baraa Attabbaa
Sep 21, 2023
all_bits_set = 2 ** (math.ceil(math.log2(num)) + 1) - 1
0
0
Comments
Comments
On this page
0% completed
Baraa Attabbaa
Sep 21, 2023
all_bits_set = 2 ** (math.ceil(math.log2(num)) + 1) - 1
0
0
On this page