Python/bit_manipulation
JatinR05 bb078541dd
Update count_number_of_one_bits.py (#7589)
* Update count_number_of_one_bits.py

removed the modulo operator as it is very time consuming in comparison to the and operator

* Update count_number_of_one_bits.py

Updated with the timeit library to compare. Moreover I have updated my code which helps us in reaching the output comparatively faster.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update bit_manipulation/count_number_of_one_bits.py

Co-authored-by: Christian Clauss <cclauss@me.com>

* Update count_number_of_one_bits.py

Updated the code

* Update count_number_of_one_bits.py

Updated code

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Run the tests before running the benchmarks

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* consistently

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2022-10-24 12:13:39 +02:00
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
binary_and_operator.py Fix typos in Sorts and Bit_manipulation (#4949) 2021-10-20 16:42:32 +08:00
binary_count_setbits.py added binary_count_trailing_zeros.py (#2557) 2020-11-26 09:27:00 +08:00
binary_count_trailing_zeros.py added binary_count_trailing_zeros.py (#2557) 2020-11-26 09:27:00 +08:00
binary_or_operator.py Fix typos in Sorts and Bit_manipulation (#4949) 2021-10-20 16:42:32 +08:00
binary_shifts.py refactor: Remove unnecessary if else condition (#4307) 2021-04-04 09:30:17 +05:30
binary_twos_complement.py Added binary shifts and twos complement functions to bit manipulation (#4068) 2021-02-23 11:45:00 +05:30
binary_xor_operator.py Fix typos in Sorts and Bit_manipulation (#4949) 2021-10-20 16:42:32 +08:00
count_1s_brian_kernighan_method.py Fix broken links by PR #7277 (#7319) 2022-10-16 15:45:25 +02:00
count_number_of_one_bits.py Update count_number_of_one_bits.py (#7589) 2022-10-24 12:13:39 +02:00
gray_code_sequence.py Add a gray_code_sequence.py file to the bit_manipulation folder (#5038) 2021-11-02 18:13:49 +08:00
is_even.py check whether integer is even or odd using bit manupulation (#7099) 2022-10-23 19:26:22 +02:00
README.md Add README files 1/7 (#5754) 2021-11-04 18:49:36 +08:00
reverse_bits.py add reverse_bits.py (#4120) 2021-01-27 15:54:57 +05:30
single_bit_manipulation_operations.py Bit manipulation: get the bit at a given position (#4438) 2021-05-18 20:24:34 +05:30