mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
c8f6f79f80
* 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> |
||
---|---|---|
.. | ||
__init__.py | ||
binary_and_operator.py | ||
binary_count_setbits.py | ||
binary_count_trailing_zeros.py | ||
binary_or_operator.py | ||
binary_shifts.py | ||
binary_twos_complement.py | ||
binary_xor_operator.py | ||
bitwise_addition_recursive.py | ||
count_1s_brian_kernighan_method.py | ||
count_number_of_one_bits.py | ||
gray_code_sequence.py | ||
highest_set_bit.py | ||
index_of_rightmost_set_bit.py | ||
is_even.py | ||
is_power_of_two.py | ||
largest_pow_of_two_le_num.py | ||
missing_number.py | ||
numbers_different_signs.py | ||
power_of_4.py | ||
README.md | ||
reverse_bits.py | ||
single_bit_manipulation_operations.py |
Bit manipulation
Bit manipulation is the act of manipulating bits to detect errors (hamming code), encrypts and decrypts messages (more on that in the 'ciphers' folder) or just do anything at the lowest level of your computer.
- https://en.wikipedia.org/wiki/Bit_manipulation
- https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations
- https://docs.python.org/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations
- https://docs.python.org/3/library/stdtypes.html#bitwise-operations-on-integer-types
- https://wiki.python.org/moin/BitManipulation
- https://wiki.python.org/moin/BitwiseOperators
- https://www.tutorialspoint.com/python3/bitwise_operators_example.htm