mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update README.md
This commit is contained in:
parent
f0c936fe6c
commit
24df4c93d7
@ -117,6 +117,8 @@ Swap bit in place: (90, 144)
|
||||
|
||||
<br>
|
||||
|
||||
* the complement is the number with respect to 2**n:
|
||||
|
||||
1. start with the equivalent positive number
|
||||
2. invert (or flip) all bits, changing every 0 to 1, and every 1 to 0
|
||||
3. add 1 to the entire inverted number, ignoring overflow
|
||||
|
Loading…
x
Reference in New Issue
Block a user