Python/bit_manipulation
Christian Clauss 4b79d771cd
Add more ruff rules (#8767)
* Add more ruff rules

* Add more ruff rules

* pre-commit: Update ruff v0.0.269 -> v0.0.270

* Apply suggestions from code review

* Fix doctest

* Fix doctest (ignore whitespace)

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

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

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-26 09:34:17 +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 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
numbers_different_signs.py add numbers different signs algorithm. (#8008) 2022-12-15 17:11:32 +13:00
README.md Add README files 1/7 (#5754) 2021-11-04 18:49:36 +08:00
reverse_bits.py Add more ruff rules (#8767) 2023-05-26 09:34:17 +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