mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-28 13:33:11 +08:00
* Add XOR-based swap algorithm for two numbers * updating DIRECTORY.md * Include additional test case for xor_swap function Add example for xor_swap with larger integers --------- Co-authored-by: Balamurugan315 <balamuruganmsde@gmail.com> Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: cclauss <cclauss@users.noreply.github.com>
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