Python/bit_manipulation
Siddharth Warrier c8f6f79f80
Power of 4 (#9505)
* added power_of_4

* updated power_of_4

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

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

* updated power_of_4

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

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

* updated power_of_4

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

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

* updated power_of_4

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

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

* updated power_of_4

* added type check

* added tescase

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-10-09 08:40:14 +13: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
bitwise_addition_recursive.py Move bitwise add (#9097) 2023-09-27 15:54:40 +02:00
count_1s_brian_kernighan_method.py Fix argument validation for count_1s_brian_kernighan_method (#7994) 2022-11-20 23:59:25 +13: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
highest_set_bit.py Add function for highest set bit location (#7586) 2022-10-26 22:09:23 +02:00
index_of_rightmost_set_bit.py fix validation condition and add tests (#7997) 2022-11-29 19:07:27 +01:00
is_even.py Update is_even.py (#8028) 2022-12-15 17:10:09 +13:00
is_power_of_two.py Is power of two (#7936) 2022-11-01 18:43:03 +01:00
largest_pow_of_two_le_num.py Added largest pow of 2 le num (#9374) 2023-10-05 21:37:23 +13:00
missing_number.py Add missing number algorithm (#9203) 2023-10-01 13:28:20 +02:00
numbers_different_signs.py add numbers different signs algorithm. (#8008) 2022-12-15 17:11:32 +13:00
power_of_4.py Power of 4 (#9505) 2023-10-09 08:40:14 +13:00
README.md Add README files 1/7 (#5754) 2021-11-04 18:49:36 +08:00
reverse_bits.py [pre-commit.ci] pre-commit autoupdate (#9013) 2023-08-29 15:18:10 +02:00
single_bit_manipulation_operations.py Bit manipulation: get the bit at a given position (#4438) 2021-05-18 20:24:34 +05:30