We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a551700 commit f4d7f0dCopy full SHA for f4d7f0d
bit_manipulation/count_number_of_one_bits.py
@@ -66,7 +66,7 @@ def get_set_bits_count_using_lookup_table(number: int) -> int:
66
67
Note: I see similar approach in GeeksforGeeks, but their implementation is little different.
68
Link to Code: https://www.geeksforgeeks.org/dsa/count-set-bits-integer-using-lookup-table/
69
-
+
70
>>> get_set_bits_count_using_lookup_table(25)
71
3
72
>>> get_set_bits_count_using_lookup_table(37)
@@ -98,7 +98,6 @@ def get_set_bits_count_using_lookup_table(number: int) -> int:
98
)
99
100
101
102
def benchmark() -> None:
103
"""
104
Benchmark code for comparing 3 functions, with different length int values.
0 commit comments