mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-02 23:05:20 -04:00
Update README.md
This commit is contained in:
parent
f0c936fe6c
commit
24df4c93d7
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue